Welcome Guest, Not a member yet? Register   Sign In
Database returns true or false?
#1

[eluser]Lazos[/eluser]
Code:
function insertPermsDB($pid, $gid) {
        $data = array (
            'permission_id' => $pid,
            'group_id'         => $gid,
            'create_date'    => mdate($this->datestring, $this->time),
            'modified_date'    => mdate($this->datestring, $this->time)
        );
        $this->db->insert('my_group_perms', $data);
    }

If I have this query for example can I return true or false or either the query will be executed and if not it will return a database error?


Messages In This Thread
Database returns true or false? - by El Forum - 11-23-2008, 11:17 AM
Database returns true or false? - by El Forum - 11-23-2008, 04:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB