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
9955bfc2
Commit
9955bfc2
authored
May 22, 2017
by
Dodi Agustin Refansius Pakpahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
f5110431
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
keluhan.php
keluhan.php
+2
-8
No files found.
keluhan.php
View file @
9955bfc2
<?php
$host
=
"127.0.0.1"
;
$user
=
"root"
;
$pass
=
""
;
$name
=
"p1d3ti08_proyek"
;
$koneksi
=
mysql_connect
(
$host
,
$user
,
$pass
)
or
die
(
"Koneksi ke database gagal!"
);
mysql_select_db
(
$name
,
$koneksi
)
or
die
(
"Tidak ada database yang dipilih!"
);
$id
=
$_POST
[
'id'
];
$nama_pengunjung
=
$_POST
[
'namapengunjung'
];
...
...
@@ -13,7 +6,7 @@ mysql_select_db($name,$koneksi)or die("Tidak ada database yang dipilih!");
$isi_keluhan
=
$_POST
[
'isikeluhan'
];
mysql
_query
(
"insert into keluhan values('
$id
', '
$nama_pengunjung
' ,'
$email_pengunjung
', '
$isi_keluhan
')"
);
mysql
i_query
(
$conn
,
"insert into keluhan values('
$id
', '
$nama_pengunjung
' ,'
$email_pengunjung
', '
$isi_keluhan
')"
);
header
(
'Location: aboutus.php'
);
?>
\ 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