• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
strange model behaviour

#3
[eluser]joeizang[/eluser]
hey thanks for the reply,

I made the change to my model, I also realized that this is written about in the documentation so i read it and still it's saying the same thing.

h1>A Database Error Occurred</h1>
<p>You must use the "set" method to update an entry.</p>

I wanted to say that I wrote another model, but did not have this problem. I don't know what I am doing wrong, but can is there anything else I should be doing?

Code:
function createcomment($data)
{
$this->db->set($data);
$this->db->insert('comments');
return $this->db->insert();
}


Messages In This Thread
strange model behaviour - by El Forum - 10-11-2009, 01:57 PM
strange model behaviour - by El Forum - 10-11-2009, 02:07 PM
strange model behaviour - by El Forum - 10-11-2009, 02:55 PM
strange model behaviour - by El Forum - 10-11-2009, 03:45 PM
strange model behaviour - by El Forum - 10-11-2009, 04:00 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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