Re: Re: Broken IF behavior? (Changing the branch changes the evaluation)

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

 



>> $Ret = mysql_fetch_array($result); if(!$Ret) { } else { return $Ret; }
> I'm assuming that you are calling my_fetch_array() in a loop of some
> sort and so at some point there are no more records in the result.

Oh... Um... Yeah... Well... <headdesk>

So... Checking the docs... "Returns an array of strings that
corresponds to the fetched row, or FALSE if there are no more rows."

Is there a way to differentiate between a FALSE for no more rows and an error?

Matt

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux