I get a parse error on line 17 of the code below, but the code is only 16 lines. I've tried renaming the source file and copying and pasting it into a new file with no change.
I'm new to PHP, so I may be missing something basic. Thanks for the help.
<?php
mysql_connect("host","username","password") or die(mysql_error());
mysql_select_db("frog") or die(mysql_error());
// Construct our join query
$query = "SELECT family.position, food.meal ".
"FROM family, food ".
"WHERE family.position = food.position";
$result = mysql_query($query) or die(mysql_error());
// Print out the contents of each row into a table
while($row = mysql_fetch_array($result)) {
echo $row['position']. " - ". $row['meal'];
echo "<br />";
?>