Hi,
I was thinking about what would be the best way to catch any kind of
SQL error if it occurs somewhere.

For example, if I have:

$result = $this->Ip->find(array('ip_address'=>'10.0.0.1'));

The $result variable will be 'false' if Ip is not found and it will
also be 'false' if some sort of SQL error occurs.

So I wonder what would be the best way to test for SQL errors in
CakePHP?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to