[eluser]ann91[/eluser]
Hello everyone...
i have a question
when we use the active record class, should we use "return"
like this
Code:
return $this->db->insert('mytable', $data);
or
Code:
$sql = "INSERT INTO ". $this->table ." (comment_id,name,url,comment) VALUES ('null','". $data["name"] ."','". $data["url"] ."','". $data["comment"] ."')";
return $this->db->query( $sql );
given the differences both of them..
thanks before