Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA1-1617-D3TI08
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dodi Agustin Refansius Pakpahan
PA1-1617-D3TI08
Commits
8410f396
Commit
8410f396
authored
Jun 08, 2017
by
Eirene Hutasoit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mengedit fungsi
parent
9140327b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
8 deletions
+29
-8
aboutus.php
aboutus.php
+0
-7
fungsi.php
fungsi.php
+29
-1
No files found.
aboutus.php
View file @
8410f396
...
...
@@ -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>
082166171273
</p>
<p><i
class=
"fa fa-envelope"
></i>
pusatseminaribukitgibeon@yahoo.com
</p>
</div>
</div>
</div>
</div>
...
...
fungsi.php
View file @
8410f396
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment