/home/desid573/public_html/angel
NameSizeModeActions
assets/-0755rm
drivers/-0755rm
font/-0755rm
lib/-0755rm
payment/-0755rm
stripe/-0755rm
twilio-php-master/-0755rm
vendor/-0755rm
after_booking_page.php25950644editdlrm
angeldrivers.png1320950644editdlrm
a_name_address.php12890644editdlrm
booking.php96210644editdlrm
booking_28-04-2017.php9470644editdlrm
booking_29-04-2017.php37170644editdlrm
cancel.php24300644editdlrm
cancel_booking.php53670644editdlrm
composer.json650644editdlrm
composer.lock23550644editdlrm
confirmsend.php25820644editdlrm
contact_us_mail.php9030644editdlrm
dispatch.php8640644editdlrm
error_log4362574560644editdlrm
generate_credit.php31870644editdlrm
generate_referall.php27790644editdlrm
getPrice.php7380644editdlrm
getuser_byid.php23410644editdlrm
getuser_bymail.php19680644editdlrm
get_all_booking.php7790644editdlrm
get_booking_bybooking_id.php8130644editdlrm
get_booking_byuser.php10570644editdlrm
get_booking_status.php22190644editdlrm
get_completed_bookings.php7270644editdlrm
get_directions.php8130644editdlrm
get_lead_message.php6730644editdlrm
get_open_bookings.php14650644editdlrm
get_payment_byuser.php10640644editdlrm
home.php16600644editdlrm
homekey_img.png140370644editdlrm
hook.php212670644editdlrm
hook_set_up.php6540644editdlrm
index.php120070644editdlrm
index_backup.php47910644editdlrm
jobdetails.php121970644editdlrm
lib_tr.zip1050470644editdlrm
login_api.php77980644editdlrm
login_api_old.php56530644editdlrm
noteconfirm.php92590644editdlrm
online_booking.php282830644editdlrm
passwordResetLink.php51950644editdlrm
pay_file.php73020644editdlrm
pay_file_back.php53260644editdlrm
placehold.html21840644editdlrm
priceCheck.php00644editdlrm
reset_email.php17550644editdlrm
search.php8300644editdlrm
send_bulk_notif.php16920644editdlrm
setprice.php44290644editdlrm
setprice_database.php5850644editdlrm
smsconfirm.php98300644editdlrm
smssend.php23540644editdlrm
stripe-php-master.zip2543660644editdlrm
test1.php1590644editdlrm
test_222.php8450644editdlrm
thankyou.php174700644editdlrm
update_api.php62900644editdlrm
update_api_on_mail.php46770644editdlrm
validatecode.php10940644editdlrm
validatephone.php10340644editdlrm
Edit: /home/desid573/public_html/angel/getuser_byid.php (2341B)
query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $customer[] = $row; $sql = "SELECT * FROM `customer_details` where `cid` = '".$row["id"]."'"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row_details = $result->fetch_assoc()) { $cust_detail[] = $row_details; } } $sql = "SELECT * FROM `customer_tokens` where `cid` = '".$row["id"]."'"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row_token = $result->fetch_assoc()) { $cust_token[] = $row_token; } } } $Res["message"] = "user detail ok"; $Res["staus"] = "OK"; if(isset($_REQUEST["all"])) { $Res["data"] = $customer; $Res["cust_detail"] = $cust_detail; $Res["cust_token"] = $cust_token; } elseif(isset($_REQUEST["token"])) { $Res["cust_token"] = $cust_token; } else { $fullname = $customer[0]["name"]; $name_split = explode(" ", $fullname); $fname = $name_split[0]; $lname = $name_split[1]; $Res["data"]["fname"] = $fname ; $Res["data"]["lname"] = $lname ; $Res["data"]["mobile"] = $customer[0]["mobile"]; $Res["data"]["email"] = $customer[0]["email"]; $Res["data"]["address"] = $cust_detail[0]["address"]; $Res["data"]["addr_lat"] = $cust_detail[0]["addr_lat"]; $Res["data"]["addr_long"] = $cust_detail[0]["addr_long"]; $Res["data"]["card_number"] = $cust_detail[0]["card_number"]; $card_expire = $cust_detail[0]["ExpiryMonth"]."/".$cust_detail[0]["Expiryyear"]; $Res["data"]["card_expire"] = $card_expire; $Res["data"]["cvv"] = $cust_detail[0]["cvv"]; $Res["data"]["card_zipcode"] = $cust_detail[0]["card_zipcode"]; $Res["data"]["card_holder_name"] = $cust_detail[0]["card_holder_name"]; } } else { $Res["message"] = "Username or Passowrd not correct!"; $Res["staus"] = "error"; } echo json_encode(new ArrayObject($Res)); //echo "
";
//print_r($Res);
//print_r($response);
//echo "
"; $conn->close(); // =============== New customer user api End Here ========================== ?>