because you are passing a string without wrapping it in single quotes
so the UPDATE statement is looking for a column instead of a string.
Try:
<?php
$this->Account->updateAll(
array('Account.memb__pwd' => '\'qweqwe\''),
array('Account.memb___id' => 'mylogin')
);
?>
Having said this it looks like you may also have problems with your
password as I'm sure your database will be storing a hashed SHA1
password, so you need to has the value you are being passed from the
form. If using the Auth component and sticking with the standard
field names this would happen automagically, but you can configure
Auth to use different username and password fields.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment