Thread: search issue
View Single Post
  #2  
Old 08-22-2006, 01:45 PM
prestor prestor is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
prestor is on a distinguished road
Default

PHP Code:
$numrows=mysql_num_rows($numresults);
$row = mysql_fetch_array($numresults, MYSQL_ASSOC);

what is the logic behind this?

in first line you are fetching results as rows and in the second line as array.

i think you should remove one of them and your code will work. also check your $country is accessible in this query. Always print your queries to see their actual shape it helps to remove errors e.g blank variables without values or syntax errors and typos.. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - search issue
Thread: search issue
View Single Post
  #2  
Old 08-22-2006, 01:45 PM
prestor prestor is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
prestor is on a distinguished road
Default

PHP Code:
$numrows=mysql_num_rows($numresults);
$row = mysql_fetch_array($numresults, MYSQL_ASSOC);

what is the logic behind this?

in first line you are fetching results as rows and in the second line as array.

i think you should remove one of them and your code will work. also check your $country is accessible in this query. Always print your queries to see their actual shape it helps to remove errors e.g blank variables without values or syntax errors and typos.. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote