RE: [PHP] Problem with using php at the command line with mysql

From: Date: Mon, 05 Jan 2004 13:05:51 +0000
Subject: RE: [PHP] Problem with using php at the command line with mysql
Groups: php.general 
Request: Send a blank email to php-general+get-173746@lists.php.net to get a copy of this message
[snip] I am using PHP to do some command line work on a Linux box. I keep getting this error and can not figure out way. Is there something I am missing because this should work. There is a copy of the code at the bottom of this message. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/.autoserv/html/auto/updatequota.php on line 8 [/snip] Let me guess that your db connection string is in an "include" file. We had a similar problem and fixed it by using full paths in includes.

« previous php.general (#173746) next »