Wednesday, January 6, 2010

Re: save not updating values in Table

Can you post your controller-action, and your table-structure?

Check if your fields aren't too small in your table, or you didn't forget
the $this->Model->save($this->data) line in your controller.

Uresh wrote:
>
> /*
> MY problem is that i fetch all the data to the form and i put all the
> fields to appropriate textbox and so on....when i submit the form the
> value passes properly but it is not updated in the database table.
> ------------
> Array
> (
> [UserProfiles] => Array
> (
> [userid] => 8
> [firstname] => eee
> [lastname] => eeee
> [password] =>
> [add1] => reeereeereee
> [add2] => reeereeereeereee
> [city] => ree
> [state] => ree
> [country] => ressss
> [zip] => 323333
> [phone] => 33333333
> [email] => dddddd@ifuturz.com
> )
> )
>
> ------------
> */
> ///////////////////////VIEW EDIT PAGE ////////////
> http://old.nabble.com/file/p27026819/edit_details.ctp edit_details.ctp
> ---------------------------------
> /////////// models ///////////////
>
> class UserProfile extends AppModel
> {
> var $name='UserProfile';
> var $primaryKey = 'userid';
> }
>
> class Admin extends AppModel
> {
> var $name='UserProfile';
> var $primaryKey = 'userid';
>
> }
> ////////////////////////////////////
> http://old.nabble.com/file/p27026819/admin_controller.php
> admin_controller.php
>

--
View this message in context: http://old.nabble.com/save-not-updating-values-in-Table-tp27026819p27026845.html
Sent from the CakePHP mailing list archive at Nabble.com.

No comments: