mysql_error() not really helping

From: Date: Wed, 14 Feb 2001 02:31:09 +0000
Subject: mysql_error() not really helping
Groups: php.general 
Request: Send a blank email to php-general+get-39549@lists.php.net to get a copy of this message
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

« previous php.general (#39549) next »