How can I use the mysql instance inside of a library in codeigniter if I would like to execute queries. The class looks like
class Dtables {
private $_db;
function __construct()
{
//initialize $_db;
}
function mysql()
{
$sQuery ="//some mysql query string";
$this->db->query($sQuery);
}
}