Welcome Guest, Not a member yet? Register   Sign In
Code
#1

[eluser]Unknown[/eluser]
Hi, I cant understand ur Delete and Update code, pls make me understand that topic. Thanks...Smile
#2

[eluser]rochellecanale[/eluser]
Have you read the topics about active record class? Or the database class?
In update you must specify the id of the thing that you want to update and together with the id you must pass the array of updated values to the
Code:
$this->db->update('tablename');
And in delete it is also the same. The only difference is in delete you may not need to declare an array of values you just need to specify the ID. You can also use the $this->db->query("YOUR QUERY HERE"); function
#3

[eluser]swgj19[/eluser]
http://ellislab.com/codeigniter/user-gui...ecord.html




Theme © iAndrew 2016 - Forum software by © MyBB