Date: 03/13/01
- Next message: Layne Weathers: "Re: [phplib] test for database SQL success or failure"
- Previous message: Horatio B. Bogbindero: "[phplib] RESOLVED session problem"
- In reply to: Horatio B. Bogbindero: "Re: [phplib] test for database SQL success or failure"
- Next in thread: Layne Weathers: "Re: [phplib] test for database SQL success or failure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Alternatively, you can also use the $db->Errno and $db->Error() combo to get
you more control on the displayable error.
To trap this, you will need to set the $db->Halt_On_Error = "no".
Sample code below:
$db->Halt_On_Error = "no";
$db->query($sql);
if ($db->Errno == 0)
echo "Success...";
else
echo "Error No: " . $db->Errno . "<br>" . $db->Error();
HTH.
Kee Yong
Email: keeyong <email protected>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Layne Weathers: "Re: [phplib] test for database SQL success or failure"
- Previous message: Horatio B. Bogbindero: "[phplib] RESOLVED session problem"
- In reply to: Horatio B. Bogbindero: "Re: [phplib] test for database SQL success or failure"
- Next in thread: Layne Weathers: "Re: [phplib] test for database SQL success or failure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

