RE: [PHP] mysql not reporting errors
| From: | Dominick Vansevenant | Date: | Fri, 09 Feb 2001 14:42:17 +0000 |
| Subject: | RE: [PHP] mysql not reporting errors | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39042@lists.php.net to get a copy of this message | ||
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:christian@tanamesa.com.br]
Sent: vrijdag 9 februari 2001 15:38
To: php-general@lists.php.net
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: 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