Welcome Guest, Not a member yet? Register   Sign In
DB Insert -- Insert Query Errors out but insert happens???
#9

[eluser]drewbee[/eluser]
OOOPS.

It looks like I was confusing something here:
I mixed up DB::insert_string() with DB::insert();

The method I was using was DB::insert(); which actually runs the query, as apposed to insert_string which returns the query. It was basically trying to execute a query on a TRUE statement.... doh... been a long day... thanks for the assistance.

Code:
return $this->db->insert('accounts', $data); //works.


Messages In This Thread
DB Insert -- Insert Query Errors out but insert happens??? - by El Forum - 07-31-2008, 09:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB