Code: Select all
$sqlC="SELECT * FROM $FileName";
$resultC=mysql_query($sqlC);
while($rows=mysql_fetch_array($resultC)){
?>
<table>
<tr>
<td><?php echo "$rows[Username]"; ?></td>
<td><?php echo "$rows[DateTime]"; ?></td>
</tr>
<tr>
<td><?php echo "$rows[Comment]"; ?></td>
</tr>
</table>
<?php
}
mysql_close(); //close database
?>Edit:
Nvm stupid mistake i forgot to add `` arround the table name