I have the following PHP code but $country does not pull anything out of the database although when I echo it it does contains someting.
$db=mysql_connect("localhost",$world_user,$world_pass);
mysql_select_db($world_data,$db);
$result = mysql_query("SELECT * FROM agentdata where region = '$country' Order by region",$db);
$count=mysql_num_rows($result);
if ($myrow = mysql_fetch_array($result))
I assume that I have my select syntax incorrect ?
Any ideas ?
Regards
Rowan