On 16-Jun-01 Dawn H wrote:
> How do I make an error display, but still continue the script? The error
> subroutine does not exit, but the original subroutine that calls it doesn't
> continue
> after the error message, it just quits.
>
A look at the code that does that would help ...
but:
$debug=1;
$qry="some SQL that fails ";
$res=mysql_query($qry);
if ($res) {
.. do your stuff
} else {
zissboombaa(__FILE__,__LINE__, $qry .mysql_error());
}
.. and continue on ...
function zissboombaa($fl, $ln, $msg='') {
global $debug;
if ($debug)
printf('<DIV ALIGN="LEFT">Exploding Sheep near %s %s:<BR>%s</DIV>',
$fl , $ln ,$msg);
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php