Welcome Guest, Not a member yet? Register   Sign In
help, updating excisting row in database[SOLVED]
#2

[eluser]danmontgomery[/eluser]
Code:
$id['ID_Page'] = $sql;

This shouldn't be an array... Furthermore, you can't pass a database result to where() (or any of the active record functions, for that matter). It would just be easier to limit and order your update query:

Code:
$this->db->order_by('ID_Page', 'DESC')->limit(1)->update($table_name, array('field_to_update' => 'new_value'));


Messages In This Thread
help, updating excisting row in database[SOLVED] - by El Forum - 03-22-2010, 04:46 AM
help, updating excisting row in database[SOLVED] - by El Forum - 03-22-2010, 07:26 AM
help, updating excisting row in database[SOLVED] - by El Forum - 03-23-2010, 03:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB