PHP interesse |
|
Beste Sitemasters,
Als ik de onderstaande code voor mijn (lach aub niet om de noobelijkheid) forumpje parse krijg ik deze error:
Parse error: syntax error, unexpected T_LNUMBER in /var/www/g25156/basdekwant.nl/HTML/view_forum.php on line 19
<?php
$host = "hst"; // Je host
$usernamepje = "iemnd"; // Database username
$passwordje = "pswd"; // Database password
$database = "db"; // Database naam
mysql_connect($host,$usernamepje,$passwordje) or die(mysql_error());
mysql_select_db($database) or die(mysql_error());
$result_set = mysql_query( "SELECT * FROM gastenboek" );
$num_messages = mysql_num_rows( $result_set );
?>
<html>
<body>
<h1>Guest Book</h1>
<br><br><hr>
<?php
// Loop over all the posts and print them out.
print "<table>";
while( $row = mysql_fetch_assoc( $result_set ) ) {
$subject = $row['subject'];
$body = $row['body'];
$naam = $row['creator'];
print "<tr><td><table border="0"><tr><td width=""14%""> Onderwerp: ".$subject."</td><td width=""86%"">Naam: ".$naam."</td></tr><tr><td> </td><td>".$body."</td></tr></table></td></tr>";
}
print "</table>";
?>
<?php $host = "hst"; // Je host $usernamepje = "iemnd"; // Database username $passwordje = "pswd"; // Database password $database = "db"; // Database naam $result_set = mysql_query( "SELECT * FROM gastenboek" ); ?> <html> <body> <h1>Guest Book</h1> <br><br><hr> <?php // Loop over all the posts and print them out. $subject = $row['subject']; $body = $row['body']; $naam = $row['creator']; print "<tr><td><table border="0"><tr><td width=""14%""> Onderwerp: ".$subject."</td><td width=""86%"">Naam: ".$naam."</td></tr><tr><td> </td><td>".$body."</td></tr></table></td></tr>"; } ?>
Wat doe ik fout?
Bij voorbaat dabk voor de hulp,
Urqbz
|