I am getting the following error when I load my web page :
Warning: Wrong parameter count for extract() in /home/mfleming/outdoor-resources.com/html/map_test.php on line 8
Here is the code that is in question:
<?php
$HTTP_GET_VARS['ID'];
$db = mysql_connect("xxx", "xxx", "xxx");
mysql_select_db("database",$db);
$result = mysql_query("SELECT Longitude, Latitude, SiteName, Address, City, State, Zip FROM rv WHERE ID = '$ID'",$db);
$affiliate_result = mysql_query("SELECT URL, SiteName, Description FROM affiliates WHERE Category = 'rv' ORDER BY SiteName", $db);
$myrow = mysql_fetch_array($result);
extract($myrow, $Longitude, $Latitude, $SiteName, $Address, $City, $State, $Zip);
?>
I don't understand what the error message is saying. I have 7 variables that I'm pulling from the database, and 7 variables that I'm trying to extract. Does anybody have an idea what I did wrong?
Thanks!
Mark