Welcome Guest, Not a member yet? Register   Sign In
Active record and date in where statement
#15

[eluser]WanWizard[/eluser]
The profiler doesn't make errors, it simply lists the queries as they were executed by the database library.

If you see an extra where clause, check your code to see where it is defined. The database class only resets it's internal arrays after executing a query, so a $this->db->where() in your code is remembered by the database class until you execute the query.

I find it hard to believe that the exact same query produces different results when run from PHPMyAdmin. As mentioned before, output $this->db1->last_query() directly after you run the query, to make sure you're looking at the same query.


Messages In This Thread
Active record and date in where statement - by El Forum - 07-21-2010, 09:14 AM
Active record and date in where statement - by El Forum - 07-21-2010, 09:36 AM
Active record and date in where statement - by El Forum - 07-21-2010, 09:37 AM
Active record and date in where statement - by El Forum - 07-21-2010, 09:44 AM
Active record and date in where statement - by El Forum - 07-21-2010, 09:53 AM
Active record and date in where statement - by El Forum - 07-21-2010, 01:29 PM
Active record and date in where statement - by El Forum - 07-21-2010, 02:57 PM
Active record and date in where statement - by El Forum - 07-21-2010, 09:16 PM
Active record and date in where statement - by El Forum - 07-22-2010, 12:35 AM
Active record and date in where statement - by El Forum - 07-22-2010, 02:06 AM
Active record and date in where statement - by El Forum - 07-22-2010, 02:16 AM
Active record and date in where statement - by El Forum - 07-22-2010, 02:31 AM
Active record and date in where statement - by El Forum - 07-22-2010, 02:40 AM
Active record and date in where statement - by El Forum - 07-22-2010, 02:49 AM
Active record and date in where statement - by El Forum - 07-22-2010, 04:11 AM
Active record and date in where statement - by El Forum - 07-22-2010, 04:18 AM
Active record and date in where statement - by El Forum - 07-22-2010, 04:29 AM
Active record and date in where statement - by El Forum - 07-22-2010, 04:37 AM
Active record and date in where statement - by El Forum - 07-22-2010, 05:31 AM
Active record and date in where statement - by El Forum - 07-22-2010, 05:50 AM
Active record and date in where statement - by El Forum - 07-22-2010, 05:54 AM
Active record and date in where statement - by El Forum - 07-22-2010, 06:03 AM
Active record and date in where statement - by El Forum - 07-22-2010, 06:16 AM
Active record and date in where statement - by El Forum - 07-22-2010, 06:31 AM
Active record and date in where statement - by El Forum - 09-25-2010, 10:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB