Re: MySQL COUNT Won't Work

From: Date: Fri, 16 Feb 2001 20:28:11 +0000
Subject: Re: MySQL COUNT Won't Work
Groups: php.general 
Request: Send a blank email to php-general+get-40218@lists.php.net to get a copy of this message
On Friday, February 16, 2001, at 09:27 AM, Jeff Oien wrote: > $result = mysql_query($sql,$connection) > or die("Couldn't execute query."); //<<error from here you die argument is next to worthless. change it to: die("ERROR ".mysql_errno().": ".mysql_error()."<pre>$query</pre"); this should tell you everything you need to know about why your query failed. :: Andrew Rush :: Lead Systems Developer :: MaineToday.com :: ************************************************************************** "Crippled but free, blind all the time, i was learning to see" - J. Garcia / R. Hunter ************************************************************************** The views expressed herein are not necessarily those of my employer, but they let me have them anyway.

« previous php.general (#40218) next »