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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
 Scott

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to