Welcome Guest, Not a member yet? Register   Sign In
$this->db->affected_rows() returns -1 after query
#4

[eluser]bleu[/eluser]
[quote author="Aken" date="1336375382"]Is the query you're generating correct? You can check using $this->db->last_query(). Are you running the affected_rows() method IMMEDIATELY after performing the query? If not, other DB manipulations may be altering the expected results.[/quote]

Yes the query I am generating correct($this->db->last_query() returns the same query I run manually in phpmyadmin) I have tried running it in phpmyadmin and it gives me the proper 0 or 1 rows affected as per the data.But when i run it through codeigniter I get -1

Is it because I have turned on codeigniter mysqli drivers


Messages In This Thread
$this->db->affected_rows() returns -1 after query - by El Forum - 05-05-2012, 02:18 AM
$this->db->affected_rows() returns -1 after query - by El Forum - 05-07-2012, 12:23 AM
$this->db->affected_rows() returns -1 after query - by El Forum - 05-07-2012, 10:42 AM
$this->db->affected_rows() returns -1 after query - by El Forum - 05-08-2012, 05:30 AM
$this->db->affected_rows() returns -1 after query - by El Forum - 05-08-2012, 05:36 AM
$this->db->affected_rows() returns -1 after query - by El Forum - 05-08-2012, 06:57 AM
$this->db->affected_rows() returns -1 after query - by El Forum - 05-09-2012, 08:16 AM
$this->db->affected_rows() returns -1 after query - by El Forum - 05-10-2012, 01:35 AM
$this->db->affected_rows() returns -1 after query - by El Forum - 11-17-2013, 06:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB