-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetail_user.php
25 lines (21 loc) · 943 Bytes
/
detail_user.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
require "koneksi.php";
function detailUser($id){
//$query = "select radcheck.id, id_detail_user.id, username, mac, ip, keterangan, detail_user.status, nama_ssid from ((radcheck inner join detail_user on id_radcheck = radcheck.id) inner join ssid on ssid.id_ssid = id_detail_user.id_ssid)";
$query = "select radcheck.id, detail_user.id_detail_user, username, mac, ip, keterangan, detail_user.status, nama_ssid from ((radcheck inner join detail_user on id_radcheck = radcheck.id) inner join ssid on ssid.id_ssid = detail_user.id_ssid) where radcheck.id = $id";
//$execute_query = mysqli_query(conn(), $query);
$execute_query = conn()->query($query);
$datas = [];
while ($row = mysqli_fetch_assoc($execute_query)){
$datas[] = $row;
}
return $datas;
}
/*
if(isset($_GET["id"])){
$id = htmlentities(strip_tags(trim($_GET["id"])));
$datas = detailUser($id);
//var_dump($datas);
}
*/
?>