I need to query mysql database from a page which is not within the CodeIgniter folder structure. The page is within a subfolder, one level in from the root. The problem I get is that when I try to query the database like this:
$qryEvents = $this->db->query("SELECT * FROM tbldeadlines");
this returns an error. I do autoload the database library in config/autoload.php, but I suspect that this does not apply to folders that are outside the CI application folder. Question is: What do I need to include on my page outside the CI application folder, so that I can query the database from that page?