Welcome Guest, Not a member yet? Register   Sign In
Trying to update database with textarea...
#2

(This post was last modified: 11-19-2014, 01:55 PM by Rufnex.)

for the update stuff you need a third parameter : the id or matching key of the dataset:

PHP Code:
$this->db->update('mytable'$data"id = 4");
or as array
$this->db->update('mytable'$data, array('id' => $id)); 

Look here at the documentation: http://www.codeigniter.com/userguide3/da...-db-update

Reply


Messages In This Thread
RE: Trying to update database with textarea... - by Rufnex - 11-19-2014, 01:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB