Re: Bizzare error

From: Date: Tue, 22 Apr 2003 15:06:57 +0000
Subject: Re: Bizzare error
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-144832@lists.php.net to get a copy of this message
On Tuesday 22 April 2003 22:31, shaun wrote: Please use a descriptive subject. Also this type of question belongs to the php-db list. > > > echo "query = $query<br>"; > > > $result = mysql_query($query); > > > > to see the error message do this: > > $result = mysql_query($query) or die ('Query failed, MySQL says: > > '.mysql_error().' in '.__FILE__.' line '.__LINE__) You said it worked ok at the mysql commandline, presumably you used the exact value of $query as above? What does $query look like? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* The inherent vice of capitalism is the unequal sharing of blessings; the inherent virtue of socialism is the equal sharing of misery. -- Churchill */

« previous php.general (#144832) next »