>works for me, just call it. change it to better match yours if you like.
>
> function check_db($query = 'Unavailble')
> {
> global $store_db;
> if ( mysql_errno() )
> {
> echo "Error: Problem with DataBase : $store_db<br>\n";
> echo "Error: " . mysql_errno() . ':' . mysql_error() . "<br>\n";
> echo "Query: $query<br>\n";
> exit();
> }
> }
that's kinda what I have here... but the line of code isn't being shown...
and that is the problem... I for one, think that in an error message the
line of code is crucial.
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. 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]