Wednesday, January 6, 2010

save not updating values in Table

/*
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-tp27026819p27026819.html
Sent from the CakePHP mailing list archive at Nabble.com.

No comments: