CodeIgniter Forums
Fatal error: Call to undefined method CI_DB_mysql_driver::get_where() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Fatal error: Call to undefined method CI_DB_mysql_driver::get_where() (/thread-10817.html)



Fatal error: Call to undefined method CI_DB_mysql_driver::get_where() - El Forum - 08-13-2008

[eluser]plainas[/eluser]
I have no idea what can be triggering this error:

Quote:Fatal error: Call to undefined method CI_DB_mysql_driver::get_where()

Fatal error: Call to undefined method CI_DB_mysql_driver::get_where()

Here's the code where the error occurs:
Code:
$sqldata = array('tag' => $tag);
$query = $this->db->get_where('tags', $sqldata);

$tag is a string.

Can anybody give me a hint?


Fatal error: Call to undefined method CI_DB_mysql_driver::get_where() - El Forum - 01-02-2010

[eluser]Unknown[/eluser]
Make sure you have active record turned on in your database config.

Code:
// system/application/config/database.php
$active_record = TRUE;