include("../content/database.php");
mysql_connect($locatie,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = 'SELECT * FROM gastenboek where tonen=1 order by id desc';
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
Schrijf een bericht in het gastenboek
$i=0;
while ($i < $num) {
echo ' | | ',$naam=mysql_result($result,$i,"naam"),' ( ',$website=mysql_result($result,$i,"website"),' ) ',$datum=mysql_result($result,$i,"datum"),' | | | | ';
echo '',$content=mysql_result($result,$i,"content"),' | | |
| ';
++$i;
}
?>
|