Re: Fetch Array Problem

From: Date: Tue, 27 May 2003 15:08:37 +0000
Subject: Re: Fetch Array Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149129@lists.php.net to get a copy of this message
Your query more than likely failed. If you had proper error checking, you'd of seen this already. Check mysql_error() after your query to see what the error is: $rs = mysql_query($query) or die(mysql_error()); or $rs = mysql_query($query); if($e = mysql_error()) { echo "Error occurred: $e"; } etc... ---John Holmes... ----- Original Message ----- From: "Todd Barr" <tbarr@geo-imaging.com> To: "Php-General@Lists.Php.Net" <php-general@lists.php.net> Sent: Tuesday, May 27, 2003 10:49 AM Subject: [PHP] Fetch Array Problem Morning We recently moved out site to a new server, and scripts that use to work, no longer do. Like mysql_fetch_array worked fine, but now I am getting this error mysql_fetch_array(): supplied argument is not a valid MySQL result resource Any ideas?

« previous php.general (#149129) next »