On Sat, 16 Jun 2001 14:33:44 -0500 (CDT), Don Read <[EMAIL PROTECTED]>   wrote:

A heck of alot easier with Perl!(Just my opinion) :) Just disable RaiseError and
enable PrintError when using DBI


>>
>>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,

Mike(mickalo)Blezien
========================================
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
http://www.thunder-rain.com
Tel: 1(225) 686-2002
=========================================
















---------------------------------------------------------------------
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

Reply via email to