CodeIgniter Forums

Full Version: Fatal error: Call to undefined method CI_DB_mysql_driver::get_where()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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?

El Forum

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

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