The image above contains the error that occured while running the project.
As it was suggested, i tried including the following code:
$autoload['libraries'] = array('database');
but it did not yeild any result and infact it showed another error
An Error Was Encountered You have specified an invalid database connection group.
Please, please give a solution.
In your controller add the constructor like
class Landing extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->library('session');
$this->load->helper('form');
$this->load->helper('url');
$this->load->helper('html');
$this->load->database();
}
}
and then in our model file try to execute query like
$this->db->select('*')->from('tablename');
$where = array('email' => $email);
$this->db->where($where);
$query = $this->db->get();
$resultId = $query->result_id;
$row_count = $resultId->num_rows;
Hope so it will help you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.