$this->save(array('balance' => $balance - 5));
On Nov 26, 12:58 am, Vivi Vivi <vivianbog...@gmail.com> wrote:
> http://book.cakephp.org/view/1031/Saving-Your-Data
>
> On Fri, Nov 26, 2010 at 10:19 AM, Biplab Subedi <bipla...@gmail.com> wrote:
> > Help me in converting this mysql query to cakephp query
>
> > $query="UPDATE tbl_user SET balance=(balance-5) WHERE id='1";
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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<cake-php%2Bunsubscribe@googlegroups.com>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
> --
> Vivihttp://photos.vr-3d.net
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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