Welcome Guest, Not a member yet? Register   Sign In
using active record
#1

[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


Messages In This Thread
using active record - by El Forum - 03-10-2011, 10:48 PM
using active record - by El Forum - 03-10-2011, 11:48 PM
using active record - by El Forum - 03-11-2011, 04:23 AM
using active record - by El Forum - 03-11-2011, 06:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB