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

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Fatal error: Call to undefined method CI_DB_mysql_driver::get_where() (/showthread.php?tid=10817)



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;