Skip to content
Snippets Groups Projects
Commit 9da5fe62 authored by William Sutanto's avatar William Sutanto
Browse files

fix preferred driver

parent 418cd28b
Branches master
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
echo " <div class='page-subtitle'>PREFERRED DRIVERS</div>"; echo " <div class='page-subtitle'>PREFERRED DRIVERS</div>";
$driver = $_POST["pref_driver"]; $driver = $_POST["pref_driver"];
if ($driver != "") { if ($driver != "") {
$sql_pref = "SELECT fullname, user.idUser, photoPath FROM user JOIN location WHERE (fullname ='%".$driver."%' AND user.idUser != '".$_GET["id_active"]."' AND (location.name = '".$asal."' OR location.name = '".$tujuan."'))"; $sql_pref = "SELECT fullname, idUser, photoPath FROM user WHERE (fullname LIKE'%".$driver."%' AND idUser != '".$_GET["id_active"]."')";
$result_pref = $conn->query($sql_pref); $result_pref = $conn->query($sql_pref);
if ($result_pref->num_rows > 0) { if ($result_pref->num_rows > 0) {
$row_pref = $result_pref->fetch_assoc(); $row_pref = $result_pref->fetch_assoc();
......
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