I am just starting to learn PHP. I have been following an example off of this tutorial I got but I get a parse error when I access the page. Need help please. The code that I wrote is as follows.
01 <html>
02 <?php
03
04 $db = mysql_connect ("SERVER_NAME", "USER_NAME", "PASSWORD") or die ('I
05 cannot connect to the database because: ' . mysql_error());
06
07 mysql_select_db ("DATABASE_NAME", $db);
08
09 $result = mysql_query("SELECT * FROM TABLE", $db);
10
11 echo "<table>";
12
13echo "<tr><td><b>NAME</b><td><b>AGE</b><td><b>ADDRESS</b></tr>;
14while ($myrow = mysql_fetch_array($result))
15 {
16 echo "<tr><td>";
17 echo $myrow["fname"];
18 echo " ";
19 echo $myrow["lname"];
20 echo "<td>";
21 echo $myrow["age"];
22 echo "<td>";
23 echo $myrow["address"]
24 }
25 echo "</table>";
26 ?>
</html>
And then the page gives me the following error message.\
Parse error: parse error, unexpected '>' on line 15
line 15 is the brace "{" before the first echo inside the while loop.