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
5acb1fe6
Commit
5acb1fe6
authored
May 22, 2017
by
Dodi Agustin Refansius Pakpahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
bf7be78e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
pemesanan.php
pemesanan.php
+1
-7
No files found.
pemesanan.php
View file @
5acb1fe6
<?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_lengkap
=
$_POST
[
'nama'
];
...
...
@@ -26,7 +20,7 @@ mysql_select_db($name,$koneksi)or die("Tidak ada database yang dipilih!");
echo
"<script language='javascript'>alert('Jumlah Peserta Melebihi Kapasitas')</script>"
;
echo
"<script>window.location = 'memesan.php'</script>"
;
}
else
{
mysqli_query
(
"insert into pemesanan(id,namalengkap, alamat, email, jumlahpeserta, waktumulai, waktuselesai, namaruangan, gambar) values('
$id
', '
$nama_lengkap
', '
$alamat
', '
$email
', '
$jumlahpeserta
', '
$waktu_mulai
', '
$waktu_selesai
', '
$namaruangan
', '
$gambar
')"
);
$memesan
=
mysqli_query
(
"insert into pemesanan(id,namalengkap, alamat, email, jumlahpeserta, waktumulai, waktuselesai, namaruangan, gambar) values('
$id
', '
$nama_lengkap
', '
$alamat
', '
$email
', '
$jumlahpeserta
', '
$waktu_mulai
', '
$waktu_selesai
', '
$namaruangan
', '
$gambar
')"
);
header
(
'Location: index.php'
);
}
...
...
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