Try to put this immediately after the mysql_query:
echo mysql_errno().": ".mysql_error()."<BR>";
I think this outputs your error.
D.
-----Original Message-----
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 9 februari 2001 15:38
To: [EMAIL PROTECTED]
Subject: [PHP] mysql not reporting errors
WHy PHP is not showing SQL syntax (or any) errors?
I'm using Win98Me with Apache 1.3.12 and PHP 4.x.
it works... if I run a correct query it runs normally, but if I go like:
$query="selct nonexistingfield from nonexistingtable with all crazy syntax";
mysql_query($query);
it doesn't tell me there's an error... in fact it doesn't show anything...
why is that?
_________________________________
. Christian Dechery - Webdeveloper
.. Diretor de Tecnologia @ Webstyle!
.. http://www.webstyle.com.br
.. http://www.tanamesa.com.br
--
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]
--
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]