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
f5110431
Commit
f5110431
authored
May 22, 2017
by
Dodi Agustin Refansius Pakpahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
5acb1fe6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
pemesanan.php
pemesanan.php
+2
-1
No files found.
pemesanan.php
View file @
f5110431
<?php
<?php
include_once
(
'fungsi.php'
);
$id
=
$_POST
[
'id'
];
$id
=
$_POST
[
'id'
];
$nama_lengkap
=
$_POST
[
'nama'
];
$nama_lengkap
=
$_POST
[
'nama'
];
...
@@ -20,7 +21,7 @@
...
@@ -20,7 +21,7 @@
echo
"<script language='javascript'>alert('Jumlah Peserta Melebihi Kapasitas')</script>"
;
echo
"<script language='javascript'>alert('Jumlah Peserta Melebihi Kapasitas')</script>"
;
echo
"<script>window.location = 'memesan.php'</script>"
;
echo
"<script>window.location = 'memesan.php'</script>"
;
}
else
{
}
else
{
$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
')"
);
$memesan
=
mysqli_query
(
$conn
,
"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'
);
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