Commit 9dc92515 by Jansa Jose

changes

parent 32cf7236
......@@ -294,7 +294,7 @@ class Webservice_model extends CI_Model {
$result['review'] = $roadRvw;
}
$respArr['status'] = "success";
$respArr['data '] = $result;
$respArr['data'] = $result;
return $respArr;
}
//Book Road Assistance
......@@ -645,7 +645,7 @@ class Webservice_model extends CI_Model {
//Get Request Accepted Garage
public function get_requestacceptedgarage($requestId = ''){
$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");
if(empty($sql) || empty($result = $sql->result_array())){
$respArr['message'] = "No data Found";
return $respArr;
......
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