• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.