Commit 32cf7236 by Jansa Jose

add comments

parent 93fafa8d
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
parent::__construct(); parent::__construct();
$this->load->model('Webservice_model'); $this->load->model('Webservice_model');
} }
//User Signup //User Signup
public function user_signup(){ public function user_signup(){
header('Content-type: application/json'); header('Content-type: application/json');
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
} }
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//User Login //User Login
public function user_login(){ public function user_login(){
header('Content-type: application/json'); header('Content-type: application/json');
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
$respArr = $this->Webservice_model->userLogin($postData); $respArr = $this->Webservice_model->userLogin($postData);
echo json_encode($respArr);exit; echo json_encode($respArr);exit;
} }
//Forgot Password //Forgot Password
public function update_profile(){ public function update_profile(){
header('Content-type: application/json'); header('Content-type: application/json');
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
} }
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//upload profilepic
public function upload_profilePic(){ public function upload_profilePic(){
header('Content-type: application/json'); header('Content-type: application/json');
$postData = $_POST; $postData = $_POST;
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
} }
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Forgot Password for user
public function user_forgetpsw(){ public function user_forgetpsw(){
header('Content-type: application/json'); header('Content-type: application/json');
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
$respArr = $this->Webservice_model->user_forgetpsw($postData); $respArr = $this->Webservice_model->user_forgetpsw($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//OTP for User
public function user_otp(){ public function user_otp(){
header('Content-type: application/json'); header('Content-type: application/json');
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
$respArr = $this->Webservice_model->user_otp($postData); $respArr = $this->Webservice_model->user_otp($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Resend OTP For User
public function user_otp_resend(){ public function user_otp_resend(){
header('Content-type: application/json'); header('Content-type: application/json');
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
...@@ -308,7 +308,7 @@ ...@@ -308,7 +308,7 @@
$respArr = $this->Webservice_model->user_forgetpsw($postData); $respArr = $this->Webservice_model->user_forgetpsw($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get CarVin
public function get_carVin(){ public function get_carVin(){
header('Content-type: application/json'); header('Content-type: application/json');
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
...@@ -345,20 +345,20 @@ ...@@ -345,20 +345,20 @@
} }
echo json_encode($return_arr);exit; echo json_encode($return_arr);exit;
} }
//Get Most Purchased
public function get_mostpurchased(){ public function get_mostpurchased(){
header('Content-type: application/json'); header('Content-type: application/json');
$respArr = $this->Webservice_model->people_most_purchased(); $respArr = $this->Webservice_model->people_most_purchased();
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Product for User
public function products_for_user(){ public function products_for_user(){
header('Content-type: application/json'); header('Content-type: application/json');
$postData = $_GET; $postData = $_GET;
$respArr = $this->Webservice_model->products_for_user($postData['user_id']); $respArr = $this->Webservice_model->products_for_user($postData['user_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Add User Car
public function add_UserCar(){ public function add_UserCar(){
$postData = $_POST; $postData = $_POST;
$respArr = array('status'=>'error','message'=>'Something went wrong1.'); $respArr = array('status'=>'error','message'=>'Something went wrong1.');
...@@ -409,13 +409,13 @@ ...@@ -409,13 +409,13 @@
$respArr = $this->Webservice_model->add_UserCar($postData); $respArr = $this->Webservice_model->add_UserCar($postData);
echo json_encode($respArr);exit; echo json_encode($respArr);exit;
} }
//Get Main Service List
public function get_mainservicelist(){ public function get_mainservicelist(){
header('Content-type: application/json'); header('Content-type: application/json');
$respArr = $this->Webservice_model->get_MainServices(); $respArr = $this->Webservice_model->get_MainServices();
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get Subservice List
public function get_subservicelist(){ public function get_subservicelist(){
header('Content-type: application/json'); header('Content-type: application/json');
$postData = $_GET; $postData = $_GET;
...@@ -427,7 +427,7 @@ ...@@ -427,7 +427,7 @@
$respArr = $this->Webservice_model->get_subServices($postData['service_id']); $respArr = $this->Webservice_model->get_subServices($postData['service_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get CarDetails
public function get_carDetails(){ public function get_carDetails(){
header('Content-type: application/json'); header('Content-type: application/json');
$postData = $_GET; $postData = $_GET;
...@@ -439,7 +439,7 @@ ...@@ -439,7 +439,7 @@
$respArr = $this->Webservice_model->get_carDetails($postData['user_id']); $respArr = $this->Webservice_model->get_carDetails($postData['user_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get User Profile
public function get_userProfile(){ public function get_userProfile(){
header('Content-type: application/json'); header('Content-type: application/json');
$postData = $_GET; $postData = $_GET;
...@@ -451,7 +451,7 @@ ...@@ -451,7 +451,7 @@
$respArr = $this->Webservice_model->get_userProfile($postData['user_id']); $respArr = $this->Webservice_model->get_userProfile($postData['user_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Road Assistance List
public function road_assistanceList(){ public function road_assistanceList(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -470,7 +470,7 @@ ...@@ -470,7 +470,7 @@
$respArr = $this->Webservice_model->road_assistanceList($postData); $respArr = $this->Webservice_model->road_assistanceList($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Road Assistance Details
public function road_assistanceDetail(){ public function road_assistanceDetail(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
...@@ -484,7 +484,7 @@ ...@@ -484,7 +484,7 @@
$respArr = $this->Webservice_model->road_assistanceDetail($postData['roadassistant_id']); $respArr = $this->Webservice_model->road_assistanceDetail($postData['roadassistant_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Book Road Assistance
public function book_roadassistance(){ public function book_roadassistance(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -525,7 +525,7 @@ ...@@ -525,7 +525,7 @@
$respArr = $this->Webservice_model->book_roadassistance($postData); $respArr = $this->Webservice_model->book_roadassistance($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Road Assistance Detail History
public function road_assistanceDetail_history(){ public function road_assistanceDetail_history(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
...@@ -536,7 +536,7 @@ ...@@ -536,7 +536,7 @@
$respArr = $this->Webservice_model->road_assistanceDetail_history($postData['roadassistant_id']); $respArr = $this->Webservice_model->road_assistanceDetail_history($postData['roadassistant_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Road Assistance Request Status
public function status_roadassistancerequest(){ public function status_roadassistancerequest(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -554,7 +554,7 @@ ...@@ -554,7 +554,7 @@
$respArr = $this->Webservice_model->status_roadassistancerequest($postData); $respArr = $this->Webservice_model->status_roadassistancerequest($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Road Assistance Request List
public function road_assistancerequestlist(){ public function road_assistancerequestlist(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
...@@ -568,7 +568,7 @@ ...@@ -568,7 +568,7 @@
$respArr = $this->Webservice_model->road_assistancerequestlist($postData['user_id']); $respArr = $this->Webservice_model->road_assistancerequestlist($postData['user_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Write Review
public function write_review(){ public function write_review(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -609,7 +609,7 @@ ...@@ -609,7 +609,7 @@
$respArr = $this->Webservice_model->write_review($postData); $respArr = $this->Webservice_model->write_review($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//User Request Service
public function user_requestService(){ public function user_requestService(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -642,7 +642,7 @@ ...@@ -642,7 +642,7 @@
$respArr = $this->Webservice_model->user_requestService($postData); $respArr = $this->Webservice_model->user_requestService($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get User Booked Service Details
public function get_userbookedServiceDetails(){ public function get_userbookedServiceDetails(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
...@@ -656,7 +656,7 @@ ...@@ -656,7 +656,7 @@
$respArr = $this->Webservice_model->user_bookedService($postData['user_id']); $respArr = $this->Webservice_model->user_bookedService($postData['user_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get Garage Details
public function get_garageDetails(){ public function get_garageDetails(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -674,7 +674,7 @@ ...@@ -674,7 +674,7 @@
$respArr = $this->Webservice_model->get_garageDetails($postData); $respArr = $this->Webservice_model->get_garageDetails($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Book Garage
public function book_garage(){ public function book_garage(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -692,7 +692,7 @@ ...@@ -692,7 +692,7 @@
$respArr = $this->Webservice_model->book_garage($postData); $respArr = $this->Webservice_model->book_garage($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Search Product
public function search_product(){ public function search_product(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -707,7 +707,7 @@ ...@@ -707,7 +707,7 @@
$respArr = $this->Webservice_model->search_product($postData['product_keyword']); $respArr = $this->Webservice_model->search_product($postData['product_keyword']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Product Details
public function product_detail(){ public function product_detail(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
...@@ -721,7 +721,7 @@ ...@@ -721,7 +721,7 @@
$respArr = $this->Webservice_model->product_detail($postData['product_id']); $respArr = $this->Webservice_model->product_detail($postData['product_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Add New Address
public function add_newadress(){ public function add_newadress(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -770,7 +770,7 @@ ...@@ -770,7 +770,7 @@
$respArr = $this->Webservice_model->add_newadress($postData); $respArr = $this->Webservice_model->add_newadress($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get Delivery Address
public function get_deliveryadress(){ public function get_deliveryadress(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -785,7 +785,7 @@ ...@@ -785,7 +785,7 @@
$respArr = $this->Webservice_model->get_deliveryadress($postData['user_id']); $respArr = $this->Webservice_model->get_deliveryadress($postData['user_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get Delivery Address By Id
public function get_deliveryadressbyid(){ public function get_deliveryadressbyid(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
...@@ -799,7 +799,7 @@ ...@@ -799,7 +799,7 @@
$respArr = $this->Webservice_model->get_deliveryadressbyid($postData['adress_id']); $respArr = $this->Webservice_model->get_deliveryadressbyid($postData['adress_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Edit Address
public function editaddress(){ public function editaddress(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -852,7 +852,7 @@ ...@@ -852,7 +852,7 @@
$respArr = $this->Webservice_model->editaddress($postData); $respArr = $this->Webservice_model->editaddress($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Request Product
public function request_product(){ public function request_product(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -885,7 +885,7 @@ ...@@ -885,7 +885,7 @@
$respArr = $this->Webservice_model->request_product($postData); $respArr = $this->Webservice_model->request_product($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get Request Details
public function get_requestedetails(){ public function get_requestedetails(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
...@@ -899,7 +899,7 @@ ...@@ -899,7 +899,7 @@
$respArr = $this->Webservice_model->get_requestedetails($postData['user_id']); $respArr = $this->Webservice_model->get_requestedetails($postData['user_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get Product Request Details By Id
public function get_productrequestdetailsbyId(){ public function get_productrequestdetailsbyId(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
...@@ -913,7 +913,7 @@ ...@@ -913,7 +913,7 @@
$respArr = $this->Webservice_model->get_productrequestdetailsbyId($postData['request_id']); $respArr = $this->Webservice_model->get_productrequestdetailsbyId($postData['request_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get Request Accepted Shop List
public function get_requestacceptedshoplist(){ public function get_requestacceptedshoplist(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
...@@ -927,7 +927,7 @@ ...@@ -927,7 +927,7 @@
$respArr = $this->Webservice_model->get_requestacceptedshoplist($postData['request_id']); $respArr = $this->Webservice_model->get_requestacceptedshoplist($postData['request_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get Shop Details
public function get_shopdetails(){ public function get_shopdetails(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
...@@ -941,7 +941,7 @@ ...@@ -941,7 +941,7 @@
$respArr = $this->Webservice_model->get_shopdetails($postData['request_id']); $respArr = $this->Webservice_model->get_shopdetails($postData['request_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Purchase Product
public function purchaseproduct(){ public function purchaseproduct(){
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
...@@ -960,7 +960,7 @@ ...@@ -960,7 +960,7 @@
$respArr = $this->Webservice_model->purchaseproduct($postData); $respArr = $this->Webservice_model->purchaseproduct($postData);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get Booked Details
public function get_bookedpartdetail(){ public function get_bookedpartdetail(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
...@@ -974,7 +974,7 @@ ...@@ -974,7 +974,7 @@
$respArr = $this->Webservice_model->get_bookedpartdetail($postData['booking_id']); $respArr = $this->Webservice_model->get_bookedpartdetail($postData['booking_id']);
echo json_encode($respArr); exit; echo json_encode($respArr); exit;
} }
//Get Request Accepted Garage
public function get_requestacceptedgarage(){ public function get_requestacceptedgarage(){
$postData = $_GET; $postData = $_GET;
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'error','message'=>'Something went wrong.');
......
...@@ -4,7 +4,7 @@ class Webservice_model extends CI_Model { ...@@ -4,7 +4,7 @@ class Webservice_model extends CI_Model {
parent::__construct(); parent::__construct();
date_default_timezone_set('Asia/Kolkata'); date_default_timezone_set('Asia/Kolkata');
} }
//create Customer
public function createCustomer($postData = array()){ public function createCustomer($postData = array()){
if(empty($postData)) if(empty($postData))
return 0; return 0;
...@@ -36,7 +36,7 @@ class Webservice_model extends CI_Model { ...@@ -36,7 +36,7 @@ class Webservice_model extends CI_Model {
$status = $this->db->insert('users',array('user_type'=>'1','profile_id'=>$last_id,'username'=>$postData['user_email'],'phone_no'=>$postData['user_phonenumber'],'password'=>$postData['user_password'],'status'=>'1')); $status = $this->db->insert('users',array('user_type'=>'1','profile_id'=>$last_id,'username'=>$postData['user_email'],'phone_no'=>$postData['user_phonenumber'],'password'=>$postData['user_password'],'status'=>'1'));
return ($status)?1:0; return ($status)?1:0;
} }
//Check Customer Login
public function checkCustomerLogin($userLogData){ public function checkCustomerLogin($userLogData){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
if(empty($userLogData)){ if(empty($userLogData)){
...@@ -56,7 +56,7 @@ class Webservice_model extends CI_Model { ...@@ -56,7 +56,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//User Login
public function userLogin($postData = array()){ public function userLogin($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
if(empty($postData)){ if(empty($postData)){
...@@ -73,7 +73,7 @@ class Webservice_model extends CI_Model { ...@@ -73,7 +73,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//Update Customer
public function updateCustomer($postData){ public function updateCustomer($postData){
if(empty($postData)) if(empty($postData))
return 0; return 0;
...@@ -104,13 +104,13 @@ class Webservice_model extends CI_Model { ...@@ -104,13 +104,13 @@ class Webservice_model extends CI_Model {
return ($status)?1:0; return ($status)?1:0;
} }
} }
//Upload Profile Pic
public function upload_profilePic($postData = array()){ public function upload_profilePic($postData = array()){
if($this->db->update('customer',array('profile_photo'=>$postData['profile_photo']),array('cust_id'=>$postData['user_id']))){ if($this->db->update('customer',array('profile_photo'=>$postData['profile_photo']),array('cust_id'=>$postData['user_id']))){
return 1; return 1;
} }
} }
//Add User Car
public function add_UserCar($postData = array()){ public function add_UserCar($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$vehicle = $postData['car_year'].' '.$postData['car_brand'].' '.$postData['car_model']; $vehicle = $postData['car_year'].' '.$postData['car_brand'].' '.$postData['car_model'];
...@@ -120,7 +120,7 @@ class Webservice_model extends CI_Model { ...@@ -120,7 +120,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//User Forgot password
public function user_forgetpsw($postData = array()){ public function user_forgetpsw($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$this->db->join("customer","customer.cust_id = users.profile_id"); $this->db->join("customer","customer.cust_id = users.profile_id");
...@@ -136,7 +136,7 @@ class Webservice_model extends CI_Model { ...@@ -136,7 +136,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//User OTP
public function user_otp($postData = array()){ public function user_otp($postData = array()){
$respArr = array('status'=>'error','message'=>'OTP Doesnot Match'); $respArr = array('status'=>'error','message'=>'OTP Doesnot Match');
$otpChk = $this->db->get_where('users',array('profile_id'=>$postData['user_id'],'user_type'=>'1')); $otpChk = $this->db->get_where('users',array('profile_id'=>$postData['user_id'],'user_type'=>'1'));
...@@ -150,7 +150,7 @@ class Webservice_model extends CI_Model { ...@@ -150,7 +150,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//People Most Purchased
public function people_most_purchased(){ public function people_most_purchased(){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT count(PTS.id) AS count,PTS.id,PTS.unique_name,PTS.part_number FROM pos_parts AS PTS LEFT JOIN booking_parts AS BKPTS ON BKPTS.pos_part_id = PTS.id WHERE PTS.status='1' GROUP BY PTS.id ORDER BY count DESC"); $sql = $this->db->query("SELECT count(PTS.id) AS count,PTS.id,PTS.unique_name,PTS.part_number FROM pos_parts AS PTS LEFT JOIN booking_parts AS BKPTS ON BKPTS.pos_part_id = PTS.id WHERE PTS.status='1' GROUP BY PTS.id ORDER BY count DESC");
...@@ -160,7 +160,7 @@ class Webservice_model extends CI_Model { ...@@ -160,7 +160,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//Products For User
public function products_for_user($userId =''){ public function products_for_user($userId =''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT * FROM vehicle_model WHERE cust_id=$userId"); $sql = $this->db->query("SELECT * FROM vehicle_model WHERE cust_id=$userId");
...@@ -184,7 +184,7 @@ class Webservice_model extends CI_Model { ...@@ -184,7 +184,7 @@ class Webservice_model extends CI_Model {
$respArr['status'] = "success"; $respArr['status'] = "success";
return $respArr; return $respArr;
} }
//User Booked Service
public function user_bookedService($userId = ''){ public function user_bookedService($userId = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT GRBK.*,GRBK.booking_id,GRBK.booking_date,GROUP_CONCAT(SBSRVCE.sub_services SEPARATOR ', ') AS subservices FROM garage_booking AS GRBK LEFT JOIN sub_services AS SBSRVCE ON find_in_set(SBSRVCE.id,GRBK.subservices_ids) WHERE GRBK.cust_id=$userId"); $sql = $this->db->query("SELECT GRBK.*,GRBK.booking_id,GRBK.booking_date,GROUP_CONCAT(SBSRVCE.sub_services SEPARATOR ', ') AS subservices FROM garage_booking AS GRBK LEFT JOIN sub_services AS SBSRVCE ON find_in_set(SBSRVCE.id,GRBK.subservices_ids) WHERE GRBK.cust_id=$userId");
...@@ -196,7 +196,7 @@ class Webservice_model extends CI_Model { ...@@ -196,7 +196,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $data; $respArr['data'] = $data;
return $respArr; return $respArr;
} }
//Get Main Services
public function get_MainServices(){ public function get_MainServices(){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT * FROM services WHERE status=1"); $sql = $this->db->query("SELECT * FROM services WHERE status=1");
...@@ -208,7 +208,7 @@ class Webservice_model extends CI_Model { ...@@ -208,7 +208,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $data; $respArr['data'] = $data;
return $respArr; return $respArr;
} }
//Get SubServices
public function get_subServices($serviceId = ''){ public function get_subServices($serviceId = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT * FROM sub_services WHERE service_id=$serviceId AND status=1"); $sql = $this->db->query("SELECT * FROM sub_services WHERE service_id=$serviceId AND status=1");
...@@ -220,7 +220,7 @@ class Webservice_model extends CI_Model { ...@@ -220,7 +220,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $data; $respArr['data'] = $data;
return $respArr; return $respArr;
} }
//Get User Profile
public function get_userProfile($userId = ''){ public function get_userProfile($userId = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT customer.*,users.username,users.password,users.phone_no FROM customer JOIN users ON (users.profile_id = customer.cust_id AND users.user_type=1) WHERE customer.cust_id =$userId"); $sql = $this->db->query("SELECT customer.*,users.username,users.password,users.phone_no FROM customer JOIN users ON (users.profile_id = customer.cust_id AND users.user_type=1) WHERE customer.cust_id =$userId");
...@@ -232,7 +232,7 @@ class Webservice_model extends CI_Model { ...@@ -232,7 +232,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $data; $respArr['data'] = $data;
return $respArr; return $respArr;
} }
//Get Car Details
public function get_carDetails($userId = ''){ public function get_carDetails($userId = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT * FROM vehicle_model WHERE cust_id =$userId"); $sql = $this->db->query("SELECT * FROM vehicle_model WHERE cust_id =$userId");
...@@ -244,7 +244,7 @@ class Webservice_model extends CI_Model { ...@@ -244,7 +244,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $data; $respArr['data'] = $data;
return $respArr; return $respArr;
} }
//Road Assistance List
public function road_assistanceList($postData = array()){ public function road_assistanceList($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$current_lat = $postData['user_lat']; $current_lat = $postData['user_lat'];
...@@ -278,7 +278,7 @@ class Webservice_model extends CI_Model { ...@@ -278,7 +278,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//Road Assistance Detail
public function road_assistanceDetail($road_assist_id=''){ public function road_assistanceDetail($road_assist_id=''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT RDAST.road_assist_id,RDAST.road_assist_code,RDAST.name,RDAST.profile_photo,RDAST.phone_no,RDAST.email_id,RDAST.address FROM road_assist AS RDAST WHERE road_assist_id=$road_assist_id"); $sql = $this->db->query("SELECT RDAST.road_assist_id,RDAST.road_assist_code,RDAST.name,RDAST.profile_photo,RDAST.phone_no,RDAST.email_id,RDAST.address FROM road_assist AS RDAST WHERE road_assist_id=$road_assist_id");
...@@ -297,7 +297,7 @@ class Webservice_model extends CI_Model { ...@@ -297,7 +297,7 @@ class Webservice_model extends CI_Model {
$respArr['data '] = $result; $respArr['data '] = $result;
return $respArr; return $respArr;
} }
//Book Road Assistance
public function book_roadassistance($postData = array()){ public function book_roadassistance($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$insert_array = array( $insert_array = array(
...@@ -316,7 +316,7 @@ class Webservice_model extends CI_Model { ...@@ -316,7 +316,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//Road Assistance Detail History
public function road_assistanceDetail_history($road_assist_id=''){ public function road_assistanceDetail_history($road_assist_id=''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT CUST.name,CUST.cust_id,CUST.phone_no,RDBK.id AS roadservicerequestid,RDBK.lat,RDBK.lng,VM.make,VM.model FROM road_booking AS RDBK INNER JOIN customer AS CUST ON (CUST.cust_id = RDBK.cust_id) INNER JOIN vehicle_model AS VM ON (VM.id = RDBK.vehicle_id) WHERE RDBK.road_assist_id =$road_assist_id"); $sql = $this->db->query("SELECT CUST.name,CUST.cust_id,CUST.phone_no,RDBK.id AS roadservicerequestid,RDBK.lat,RDBK.lng,VM.make,VM.model FROM road_booking AS RDBK INNER JOIN customer AS CUST ON (CUST.cust_id = RDBK.cust_id) INNER JOIN vehicle_model AS VM ON (VM.id = RDBK.vehicle_id) WHERE RDBK.road_assist_id =$road_assist_id");
...@@ -328,7 +328,7 @@ class Webservice_model extends CI_Model { ...@@ -328,7 +328,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Road Assistance Request Status
public function status_roadassistancerequest($postData = array()){ public function status_roadassistancerequest($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
if($this->db->update("road_booking",array('status'=>$postData['status']),array('id'=>$postData['roadservice_requestId']))){ if($this->db->update("road_booking",array('status'=>$postData['status']),array('id'=>$postData['roadservice_requestId']))){
...@@ -336,7 +336,7 @@ class Webservice_model extends CI_Model { ...@@ -336,7 +336,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//Road Assistance Request List
public function road_assistancerequestlist($userId =''){ public function road_assistancerequestlist($userId =''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT CUST.name,RDBK.road_assist_id,CUST.phone_no,RDBK.id AS roadservicerequestid,RDBK.status,RDBK.date FROM road_booking AS RDBK INNER JOIN customer AS CUST ON (CUST.cust_id = RDBK.cust_id) WHERE RDBK.cust_id =$userId"); $sql = $this->db->query("SELECT CUST.name,RDBK.road_assist_id,CUST.phone_no,RDBK.id AS roadservicerequestid,RDBK.status,RDBK.date FROM road_booking AS RDBK INNER JOIN customer AS CUST ON (CUST.cust_id = RDBK.cust_id) WHERE RDBK.cust_id =$userId");
...@@ -348,7 +348,7 @@ class Webservice_model extends CI_Model { ...@@ -348,7 +348,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Write Review
public function write_review($postData = array()){ public function write_review($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$insert_array = array( $insert_array = array(
...@@ -365,7 +365,7 @@ class Webservice_model extends CI_Model { ...@@ -365,7 +365,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//User Request Service
public function user_requestService($postData = array()){ public function user_requestService($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$squence = str_pad(rand(1111,9999),4,0,STR_PAD_LEFT); $squence = str_pad(rand(1111,9999),4,0,STR_PAD_LEFT);
...@@ -383,7 +383,7 @@ class Webservice_model extends CI_Model { ...@@ -383,7 +383,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//Get Garage Details
public function get_garageDetails($postData = array()){ public function get_garageDetails($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT GRG.garage_code,GRG.name,GRG.code,GRG.phone_no,GROUP_CONCAT(AMT.name SEPARATOR ', ') AS amenities,GRGRES.quote_type,GRGRES.labour_cost,GRGRES.parts_cost FROM garage_response AS GRGRES INNER JOIN garage AS GRG ON (GRG.garage_id = GRGRES.garage_id) INNER JOIN amenities AS AMT ON find_in_set(AMT.id,GRG.amenities) WHERE GRGRES.garage_id=".$postData['garage_id']." AND GRGRES.req_id = ".$postData['req_id']); $sql = $this->db->query("SELECT GRG.garage_code,GRG.name,GRG.code,GRG.phone_no,GROUP_CONCAT(AMT.name SEPARATOR ', ') AS amenities,GRGRES.quote_type,GRGRES.labour_cost,GRGRES.parts_cost FROM garage_response AS GRGRES INNER JOIN garage AS GRG ON (GRG.garage_id = GRGRES.garage_id) INNER JOIN amenities AS AMT ON find_in_set(AMT.id,GRG.amenities) WHERE GRGRES.garage_id=".$postData['garage_id']." AND GRGRES.req_id = ".$postData['req_id']);
...@@ -402,7 +402,7 @@ class Webservice_model extends CI_Model { ...@@ -402,7 +402,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Book Garage
public function book_garage($postData = array()){ public function book_garage($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
if($this->db->update('garage_request',array('resp_id'=>$postData['resp_id'],'status'=>'3'),array('id'=>$postData['req_id']))){ if($this->db->update('garage_request',array('resp_id'=>$postData['resp_id'],'status'=>'3'),array('id'=>$postData['req_id']))){
...@@ -412,7 +412,7 @@ class Webservice_model extends CI_Model { ...@@ -412,7 +412,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//Search Product
public function search_product($keyword = ''){ public function search_product($keyword = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT unique_name,id,part_number FROM pos_parts WHERE unique_name LIKE '%$keyword%' OR part_number LIKE '%$keyword%'"); $sql = $this->db->query("SELECT unique_name,id,part_number FROM pos_parts WHERE unique_name LIKE '%$keyword%' OR part_number LIKE '%$keyword%'");
...@@ -433,7 +433,7 @@ class Webservice_model extends CI_Model { ...@@ -433,7 +433,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Product Details
public function product_detail($prod_id = ''){ public function product_detail($prod_id = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT unique_name,id,part_number FROM pos_parts WHERE id=$prod_id"); $sql = $this->db->query("SELECT unique_name,id,part_number FROM pos_parts WHERE id=$prod_id");
...@@ -452,7 +452,7 @@ class Webservice_model extends CI_Model { ...@@ -452,7 +452,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Add New Address
public function add_newadress($postData = array()){ public function add_newadress($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$postData['customer_id'] = $postData['user_id']; $postData['customer_id'] = $postData['user_id'];
...@@ -463,7 +463,7 @@ class Webservice_model extends CI_Model { ...@@ -463,7 +463,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//Get Delivery Address
public function get_deliveryadress($user_id = ''){ public function get_deliveryadress($user_id = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->get_where("customer_address",array('customer_id'=>$user_id)); $sql = $this->db->get_where("customer_address",array('customer_id'=>$user_id));
...@@ -475,7 +475,7 @@ class Webservice_model extends CI_Model { ...@@ -475,7 +475,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Get Delivery Address By Id
public function get_deliveryadressbyid($address_id=''){ public function get_deliveryadressbyid($address_id=''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->get_where("customer_address",array('id'=>$address_id)); $sql = $this->db->get_where("customer_address",array('id'=>$address_id));
...@@ -487,7 +487,7 @@ class Webservice_model extends CI_Model { ...@@ -487,7 +487,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Edit Address
public function editaddress($postData = array()){ public function editaddress($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$postData['customer_id'] = $postData['user_id']; $postData['customer_id'] = $postData['user_id'];
...@@ -499,7 +499,7 @@ class Webservice_model extends CI_Model { ...@@ -499,7 +499,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//Request Product
public function request_product($postData = array()){ public function request_product($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$insert_array = array( $insert_array = array(
...@@ -514,7 +514,7 @@ class Webservice_model extends CI_Model { ...@@ -514,7 +514,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//Get Request Details
public function get_requestedetails($userId = ''){ public function get_requestedetails($userId = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT POS.id,POS.part_number,POS.unique_name,POS.pos_parts_img,PSRSPNSE.req_id AS pos_req_id,PSBKNG.status FROM pos_booking AS PSBKNG INNER JOIN pos_response AS PSRSPNSE ON PSRSPNSE.id = PSBKNG.resp_id INNER JOIN pos_parts AS POS ON pos_parts.id = PSRSPNSE.pos_parts WHERE PSBKNG.cust_id = $userId"); $sql = $this->db->query("SELECT POS.id,POS.part_number,POS.unique_name,POS.pos_parts_img,PSRSPNSE.req_id AS pos_req_id,PSBKNG.status FROM pos_booking AS PSBKNG INNER JOIN pos_response AS PSRSPNSE ON PSRSPNSE.id = PSBKNG.resp_id INNER JOIN pos_parts AS POS ON pos_parts.id = PSRSPNSE.pos_parts WHERE PSBKNG.cust_id = $userId");
...@@ -526,7 +526,7 @@ class Webservice_model extends CI_Model { ...@@ -526,7 +526,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Get Product Request Details By Id
public function get_productrequestdetailsbyId($requestId = ''){ public function get_productrequestdetailsbyId($requestId = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT POS.id,POS.part_number,POS.unique_name AS prdt_name,POS.pos_parts_img,PSRSPNSE.req_id AS pos_req_id,PSBKNG.status,VEHM.make,VEHM.model,VEHM.year,VEHM.vehicle_name,CUSTAD.name AS cust_name,CUSTAD.area AS cust_area,CUSTAD.country AS cust_country,CUSTAD.district AS cust_district,CUSTAD.phone_no AS cust_phone_no,CUSTAD.house_no AS cust_house_no,CUSTAD.city AS cust_city $sql = $this->db->query("SELECT POS.id,POS.part_number,POS.unique_name AS prdt_name,POS.pos_parts_img,PSRSPNSE.req_id AS pos_req_id,PSBKNG.status,VEHM.make,VEHM.model,VEHM.year,VEHM.vehicle_name,CUSTAD.name AS cust_name,CUSTAD.area AS cust_area,CUSTAD.country AS cust_country,CUSTAD.district AS cust_district,CUSTAD.phone_no AS cust_phone_no,CUSTAD.house_no AS cust_house_no,CUSTAD.city AS cust_city
...@@ -545,7 +545,7 @@ class Webservice_model extends CI_Model { ...@@ -545,7 +545,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Get Request Accepted Shop List
public function get_requestacceptedshoplist($requestId =''){ public function get_requestacceptedshoplist($requestId =''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT POS.pos_id,POS.profile_photo,POS.name AS shop_name,PSRSPNSE.cost $sql = $this->db->query("SELECT POS.pos_id,POS.profile_photo,POS.name AS shop_name,PSRSPNSE.cost
...@@ -575,7 +575,7 @@ class Webservice_model extends CI_Model { ...@@ -575,7 +575,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Get Shop Details
public function get_shopdetails($requestId = ''){ public function get_shopdetails($requestId = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT POS.pos_id,POS.profile_photo,POS.name AS shop_name,PSRSPNSE.cost $sql = $this->db->query("SELECT POS.pos_id,POS.profile_photo,POS.name AS shop_name,PSRSPNSE.cost
...@@ -597,7 +597,7 @@ class Webservice_model extends CI_Model { ...@@ -597,7 +597,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Purchase Product
public function purchaseproduct($postData = array()){ public function purchaseproduct($postData = array()){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT PSRSP.total,PSRSP.pos_id,PSRQT.address FROM pos_response AS PSRSP INNER JOIN pos_request AS PSRQT ON PSRSP.req_id = PSRQT.id WHERE PSRSP.req_id =".$postData['req_id']." AND PSRSP.id =".$postData['response_id']); $sql = $this->db->query("SELECT PSRSP.total,PSRSP.pos_id,PSRQT.address FROM pos_response AS PSRSP INNER JOIN pos_request AS PSRQT ON PSRSP.req_id = PSRQT.id WHERE PSRSP.req_id =".$postData['req_id']." AND PSRSP.id =".$postData['response_id']);
...@@ -621,7 +621,7 @@ class Webservice_model extends CI_Model { ...@@ -621,7 +621,7 @@ class Webservice_model extends CI_Model {
} }
return $respArr; return $respArr;
} }
//Get Booked Part Detail
public function get_bookedpartdetail($booking_id = ''){ public function get_bookedpartdetail($booking_id = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT PSBKNG.book_id,PSPTS.part_number,PSPTS.unique_name,PSPTS.id AS part_id, $sql = $this->db->query("SELECT PSBKNG.book_id,PSPTS.part_number,PSPTS.unique_name,PSPTS.id AS part_id,
...@@ -642,7 +642,7 @@ class Webservice_model extends CI_Model { ...@@ -642,7 +642,7 @@ class Webservice_model extends CI_Model {
$respArr['data'] = $result; $respArr['data'] = $result;
return $respArr; return $respArr;
} }
//Get Request Accepted Garage
public function get_requestacceptedgarage($requestId = ''){ public function get_requestacceptedgarage($requestId = ''){
$respArr = array('status'=>'error'); $respArr = array('status'=>'error');
$sql = $this->db->query("SELECT GRG.garage_id,GRG.garage_code,GRG.name,GRG.code,GRG.phone_no,GRGRES.quote_type,GRGRES.labour_cost,GRGRES.parts_cost,GRGRES.id AS garage_response_id FROM garage_response AS GRGRES INNER JOIN garage AS GRG ON (GRG.garage_id = GRGRES.garage_id) WHERE GRGRES.req_id = $requestId"); $sql = $this->db->query("SELECT GRG.garage_id,GRG.garage_code,GRG.name,GRG.code,GRG.phone_no,GRGRES.quote_type,GRGRES.labour_cost,GRGRES.parts_cost,GRGRES.id AS garage_response_id FROM garage_response AS GRGRES INNER JOIN garage AS GRG ON (GRG.garage_id = GRGRES.garage_id) WHERE GRGRES.req_id = $requestId");
......
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