Commit 85ff208f by Jansa Jose

booking history

parent eeaa3b59
...@@ -1766,7 +1766,7 @@ function booking_ride_history($request){ ...@@ -1766,7 +1766,7 @@ function booking_ride_history($request){
$this->db->or_where('ride.departure_date<',$date ); $this->db->or_where('ride.departure_date<',$date );
$this->db->where('ride.status !=','2' ); $this->db->where('ride.status !=','2' );
$this->db->where('booking.user_id',$request['user_id']); $this->db->where('booking.user_id',$request['user_id']);
$this->db->select('DISTINCT(booking.id) as bookid,rating.rating,booking.ride_id,booking.departure_point,booking.drop_point,booking.amount,ride.detour_time,ride.departure_date,ride.users_id as owner,ride.reached_time'); $this->db->select('DISTINCT(booking.id) as bookid,rating.rating,booking.ride_id,booking.departure_point,booking.drop_point,booking.amount,ride.detour_time,ride.departure_date,ride.users_id as owner,ride.reached_time,ride.ride_status');
$this->db->from('booking'); $this->db->from('booking');
$this->db->join('ride','booking.ride_id=ride.id','left'); $this->db->join('ride','booking.ride_id=ride.id','left');
$this->db->join('rating','booking.id=rating.book_id','left'); $this->db->join('rating','booking.id=rating.book_id','left');
......
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