Welcome Guest, Not a member yet? Register   Sign In
[solved]MYSQL ERROR 1096 - NO TABLES USED - CODEIGNITER
#4

[eluser]Aken[/eluser]
Bingo. $this->db->query() is NOT an active record function, and is meant to be used by itself. $this->db->get() is part of active record, and can be used in conjunction with select(), where(), limit(), etc.

I'd recommend using the normal query() method for most queries, unless you intend on distributing your application for use with more than one type of database. Active record can be handy, but it has its limitations and does slow down your application a minimal amount (important for high traffic sites).


Messages In This Thread
[solved]MYSQL ERROR 1096 - NO TABLES USED - CODEIGNITER - by El Forum - 08-03-2011, 08:23 AM
[solved]MYSQL ERROR 1096 - NO TABLES USED - CODEIGNITER - by El Forum - 08-03-2011, 09:23 AM
[solved]MYSQL ERROR 1096 - NO TABLES USED - CODEIGNITER - by El Forum - 08-03-2011, 09:39 AM
[solved]MYSQL ERROR 1096 - NO TABLES USED - CODEIGNITER - by El Forum - 08-04-2011, 02:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB