Strange bahavior with mysql_fetch_array($result)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am searching a table and have the following php code with my
comments:

$result = mysql_query($query);
print "The result == $result"; 
// it returns The result == Resource id #2"
if (!mysql_fetch_array($result)) {
 ...
} else {
  while ($row = mysql_fetch_array($result)) {
      ...
   }
}
Neither the if nor the while get executed. 
Can you make any suggestions? Obviously I'm new to this.

Evan

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux