Re: need better solution
| From: | Christian Dechery | Date: | Wed, 14 Feb 2001 17:43:11 +0000 |
| Subject: | Re: need better solution | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39689@lists.php.net to get a copy of this message | ||
>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