PHP/MySQL

admin

Administrator
Staff member
Can anyone tell me what the problem on line 17 is? I can't figure it out and it was working an hour ago. Now it is returning the message "parse error on line 17"



<body>
<?

$db = mysql_connect("161.58.151.98","aidema","hexagenia");

mysql_select_db("journeys",$db);

$result = mysql_query("SELECT * FROM trips",$db);

echo "<table border=1>\n";

echo "<tr><td>Trip Name</td><td>Region</td><td>Country</td> <td>Description</td><td>Cost</td><td>Duration</td><td>Lodging</td><td>Grade</td></tr>;

while ($myrow = mysql_fetch_row($result))
{
printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><</tr>\n", $myrow[1], $myrow[2], $myrow[3], $myrow[4], $myrow[5], $myrow[6], $myrow[7], $myrow[8]);

}

echo "</table>\n";

?>

</body>
 
Back
Top