Skip to content
Snippets Groups Projects
Commit 389fd9b3 authored by Aldrich Valentino Halim's avatar Aldrich Valentino Halim
Browse files

commit user

parent 2c466961
1 merge request!42Projekers - 13515051 - Girvandi Ilyas
......@@ -67,4 +67,12 @@ class User {
return $result;
}
function getDriver(){
$con = mysqli_connect('localhost','root','','projekers');
mysqli_select_db($con,'projekers');
$query = "SELECT id,name,image FROM user WHERE isDriver=1";
$result = mysqli_query($con,$query);
mysqli_close($con);
return $result;
}
}
\ No newline at end of file
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