Re: PHP4 and mysql_fetch_array() - one more try

From: Date: Thu, 02 Nov 2000 14:47:49 +0000
Subject: Re: PHP4 and mysql_fetch_array() - one more try
Groups: php.db 
Request: Send a blank email to php-db+get-4137@lists.php.net to get a copy of this message
>sorry, I can't agree. >The code example from my first email works fine with PHP3. I have plenty >of scripts, which use that code scheme, that run with PHP3 without any >problems. After I had upgraded my Apache server to PHP4 in my testing >environtment I got those warning messages. For me it means that there >are some compatibility problems between PHP3 and PHP4. Regardless of any compatibilty issues, you still cannot just use the return from mysql_db_query without checking it first. If you check the result, and then do a mysql_error() if it's zero, you'll find out what's going wrong. At that point, you can might be able to start complaining about incompatibilities. Your code was only working on PHP3 because you were lucky enough for mysql not to be returning an error! Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org

« previous php.db (#4137) next »