chatlog.php~

socketmud/www/chatlog.php~ · 609 B

From the archive MySQLMud.tar.gz

Download the archive   « Back to the archive contents

<?
include("dbinfo.inc.php");

mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM vand_chatlog";
$result=mysql_query($query);

$num=mysql_numrows($result);

mysql_close();

echo "<title>Vandagard Chatlog</title.";
echo "<b><center>Recently heard on Vandagard..</center></b><br><br>";

$i=0;
while ($i < $num) {

$time=mysql_result($result,$i,"time");
$channel=mysql_result($result,$i,"channel");
$who=mysql_result($result,$i,"who");
$text=mysql_result($result,$i,"text");

echo "$time $channel $who : $text<br>";

$i++;
}

?>

Site Stats

Snippets: 1791
Codebases: 571