Re: mysql_error() not really helping

From: Date: Wed, 14 Feb 2001 02:16:13 +0000
Subject: Re: mysql_error() not really helping
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39561@lists.php.net to get a copy of this message
Christian - You need to be checking the return values of the mysql_*() functions. Make sure you're not calling them with a @mysql_*() as that will disable error reporting. Perhaps you should give us some examples of what's failing and how? Also, if the server isn't yours the server admin may have turnd down the level of error reporting in php so errors never even show up. See http://www.php.net/manual/en/configuration.php and look at display_errors and error_reporting then check your server settings with phpinfo(). -- Scott On Tue, Feb 13, 2001 at 11:31:09PM -0300, Christian Dechery wrote: > I'm having a little trouble here developing and running queries. > > I spent some time developing in ASP, and whenever there was something wrong > with a query, the script halted, and the error message - from ODBC, tye sql > syntax error - was printed along with the line of code. > > In PHP that's not how it goes, it doesn't tell me when theres an error with > a mysql_query unless I place a call to mysql_error() after each executed > query right? > > That's exactly what I'm doing, but again, it doesn't do all I want, cuz it > doesn't tell me the line of code, and I don't know where is the error, > unless I start printing everything on error handling. > ____________________________ > . Christian Dechery (lemming) > . http://www.tanamesa.com.br > . Gaita-L Owner / Web Developer > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Scott

« previous php.general (#39561) next »