Commit 8410f396 by Eirene Hutasoit

mengedit fungsi

parent 9140327b
......@@ -47,14 +47,7 @@
</form>
</div>
<div class="col-md-3" style="margin-top:85px; float:right; border:solid 1px;">
<div class="kontak">
<p>Contact Person</p>
<p><i class="fa fa-phone"></i>&nbsp; 082166171273</p>
<p><i class="fa fa-envelope"></i>&nbsp; pusatseminaribukitgibeon@yahoo.com</p>
</div>
</div>
</div>
</div>
......
......@@ -2,7 +2,7 @@
global $conn;
$conn = mysqli_connect("127.0.0.1", "p1d3ti08", "Gibeon08", "p1d3ti08_proyek");
$conn = mysqli_connect("127.0.0.1", "root", "", "p1d3ti08_proyek");
if(!$conn){
die("database connect problem");
}
......@@ -98,6 +98,7 @@ function getUser(){
'kapasitas' => $data['kapasitas kamar'],
'harga' => $data['harga'],
'gambar' => $data['gambar']
));
}
......@@ -137,4 +138,30 @@ function getUser(){
return false;
}
}
function getPengunjung(){
$strQ = "SELECT * FROM user where role LIKE 'user' ";
$resItem = execQ($strQ);
if(mysqli_num_rows($resItem)!=0){
$ret = array();
while($data = mysqli_fetch_assoc($resItem)){
array_push($ret, array(
'id' => $data['id'],
'namalengkap' => $data['namalengkap'],
'alamat' => $data['alamat'],
'email' => $data['email'],
'username' => $data['username'],
'password' => $data['password'],
'role' => $data['role']
));
}
return $ret;
} else{
return false;
}
}
\ No newline at end of file
Markdown is supported
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