Hi, I have just started coding PHP tonight, I have an intermediate knowledge of Perl going in to this. But here is my short code:
<body>
<?php
$db = mysql_connect("localhost", "****", "**");
$flg = mysql_select_db("guestbook",$db);
$result = mysql_query("SELECT * FROM Entries",$db);
printf("Name: %s<br>\n", mysql_result($result,0,"Name"));
printf("Email: %s<br>\n", mysql_result($result,0,"Email"));
printf("Page: %s<br>\n", mysql_result($result,0,"Webpage"));
printf("Message: %s<br>\n", mysql_result($result,0,"Message));
?>
</body>
The 'parse error' it gives me occurs at line 17, which is the tag. I basically copied the code right out of a Webmonkey tutorial, and so am lost as to what the problem could be. Any ideas?