Welcome Guest, Not a member yet? Register   Sign In
Multiple INSERT INTO in one $this->db->query
#2

[eluser]Randy Casburn[/eluser]
Assuming you are using the MySQL driver, eventually, this is the command that is run by CI:

Code:
return @mysql_query($sql, $this->conn_id);

This implies, then, that your SQL statements (INSERT or otherwise) must be treated as standalone statements and cannot be compounded as you've attempted to do.

Hope this has been helpful,

Randy


Messages In This Thread
Multiple INSERT INTO in one $this->db->query - by El Forum - 09-27-2008, 12:55 PM
Multiple INSERT INTO in one $this->db->query - by El Forum - 09-27-2008, 01:21 PM
Multiple INSERT INTO in one $this->db->query - by El Forum - 09-27-2008, 01:23 PM
Multiple INSERT INTO in one $this->db->query - by El Forum - 09-27-2008, 01:25 PM
Multiple INSERT INTO in one $this->db->query - by El Forum - 09-27-2008, 01:33 PM
Multiple INSERT INTO in one $this->db->query - by El Forum - 09-27-2008, 02:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB