Re: emulate callback error for php3
| From: | electroteque | Date: | Sun, 02 Feb 2003 05:54:28 +0000 |
| Subject: | Re: emulate callback error for php3 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133962@lists.php.net to get a copy of this message | ||
to be a bit less vague , i have a db query wrapper function, and checks for
mysql errors if there is one it needs to catch it to a callback function
although php3 doesnt handle callback functions so you have to give it the
line and file, is there anyway i can try and get away from putting the line
and file in the function like this ?
$query = $db->query("select * from artists where
artistI=1",__LINE__,__FILE__);
"Electroteque" <daniel@electroteque.org> wrote in message
news:20030202021108.58744.qmail@pb1.pair.com...
> hi sorry to ask so many questions but i have now realised that php3 doesnt
> handle the callback error handling so i can return the line and file of
the
> error into a function is there a way to emulate this in php3 ?
>
>