Commit 2b9f0c65 by Jansa Jose

admin driver details

parent 1756bb94
...@@ -6,10 +6,10 @@ class Driver_model extends CI_Model { ...@@ -6,10 +6,10 @@ class Driver_model extends CI_Model {
function get_driver(){ function get_driver(){
$query = $this->db->where('status',1); $query = $this->db->where('booking_approve.status',1);
$query=$this->db->where('driver_id !=', 'NULL'); $query=$this->db->where('driver_id !=', 'NULL');
$this->db->join('users','users.id = booking_approve.driver_id'); $this->db->join('users','users.id = booking_approve.driver_id');
$query = $this->db->distinct()->select('booking_approve.driver_id,TRIM(concat(users.first_name,' ',IFNULL(users.last_name,''))) as driver_name,users.email,users.gender,users.date_of_birth'); $query = $this->db->distinct()->select("booking_approve.driver_id,TRIM(concat(users.first_name,' ',IFNULL(users.last_name,''))) as driver_name,users.email,users.gender,users.date_of_birth");
$query = $this->db->get('booking_approve'); $query = $this->db->get('booking_approve');
//echo $this->db->last_query();die(); //echo $this->db->last_query();die();
$result = $query->result(); $result = $query->result();
......
...@@ -55,7 +55,7 @@ date_default_timezone_set("Asia/Kolkata"); ...@@ -55,7 +55,7 @@ date_default_timezone_set("Asia/Kolkata");
* *
* NOTE: If you change these, also change the error_reporting() code below * NOTE: If you change these, also change the error_reporting() code below
*/ */
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'production'); define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
/* /*
*--------------------------------------------------------------- *---------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment