Hey,

I'm doing a manual update to my database with a custom query, like so:

$this->Model->query("UPDATE table SET attribute='1' WHERE condition='".
$variable);

It's all good, it works fine. But how can I check if the result, in
this case the update, was successful?

I need to check if it was successful, so I can redirect after it, and
post a message to the user.

Does query return true or false after it has been executed?

Would be nice if someone could help me with this!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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