Wednesday, May 9, 2012

Re: edit database record

It might help if you tell us what error is being generated.


On Wed, May 9, 2012 at 6:26 AM, harpreet singh <harpreet.suman@gmail.com> wrote:
> hi,
>
> I am new to cakephp as i am working with one project where i have one
> table prjdetails. want to update or edit one record at a time with
> particular said user_id column.as i dont have have id column in my
> table i want to updtae record a record whaen user_id of  user is
> passed  I am using read command and i am not able to put condition in
> this command as i put in my find commans as follow
>
> find('all', array('conditions'=>array('user_id'=>$this->Auth-
>>user('id')))
>
> each time i try to put condition in read command it generate error
>
> please suggest me any way as i want to use read command only as i want
> my text box should contain read record when user click edit button
>
> --
> Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
>
>
> 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

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate