On Jul 9, 11:06 am, reeta <[EMAIL PROTECTED]> wrote:
<snip>
> now in model class:-
> function changepass($pass,$id)
> {
> $this->query("UPDATE customers SET password='$pass' WHERE
> id='$id'");
Why are you using query instead of save or saveField..?
If you don't want to use the features of the framework, why use the
framework?
> This is working well,but if i want to run query on another table then
> how can i do this?
You call save (or whatever) on the other model.
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---