Re: mysql_error() not really helping
| From: | Christian Dechery | Date: | Wed, 14 Feb 2001 13:08:14 +0000 |
| Subject: | Re: mysql_error() not really helping | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39616@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().
the server is local, I'm running it (apache 1.3.12)...
I set the error_reporting to the default in php.ini, I even set error_reporting(E_ALL),
but all I got were warnings about every thing PHP did, nothing MySQL related...
but nevermind, I've already fixed me a function that I call EVERY query
I run (altough I find this very annoying) that tells me when there's a sql
syntax error...
thanks
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br