Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TB_Center
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
Andry F. Hutapea
TB_Center
Commits
5746aac1
Commit
5746aac1
authored
May 26, 2017
by
Andry F. Hutapea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perubahan
parent
6d883b54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
110 additions
and
0 deletions
+110
-0
berita_pemesanan.php
berita_pemesanan.php
+110
-0
No files found.
berita_pemesanan.php
0 → 100644
View file @
5746aac1
<?php
session_start
();
include_once
(
'config/koneksi.php'
);
open_page
(
'booking'
);
?>
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<link
href=
"css/metro-bootstrap.css"
rel=
"stylesheet"
>
<link
href=
"css/metro-bootstrap-responsive.css"
rel=
"stylesheet"
>
<link
href=
"css/iconFont.css"
rel=
"stylesheet"
>
<link
href=
"css/docs.css"
rel=
"stylesheet"
>
<link
href=
"css/animate1.css"
rel=
"stylesheet"
type=
"text/css"
>
<!-- Load JavaScript Libraries -->
<script
src=
"js/jquery/jquery.min.js"
></script>
<script
src=
"js/jquery/jquery.widget.min.js"
></script>
<script
src=
"js/jquery/jquery.mousewheel.js"
></script>
<!-- Metro UI CSS JavaScript plugins -->
<script
src=
"js/load-metro.js"
></script>
<!-- Local JavaScript -->
<script
src=
"js/docs.js"
></script>
<style
type=
"text/css"
>
body
{
background
:
#efefef
;
font-family
:
arial
;}
#wrapshopcart
{
width
:
70%
;
margin
:
3em
auto
;
padding
:
30px
;
background
:
#fff
;
box-shadow
:
0
0
15px
#ddd
;}
h1
{
margin
:
0
;
padding
:
0
;
font-size
:
2.5em
;
font-weight
:
bold
;}
p
{
font-size
:
1em
;
margin
:
0
;}
table
{
margin
:
2em
0
0
0
;
border
:
1px
solid
#eee
;
width
:
100%
;
border-collapse
:
separate
;
border-spacing
:
0
;}
table
th
{
background
:
#fafafa
;
border
:
none
;
padding
:
20px
;
font-weight
:
normal
;
text-align
:
left
;}
table
td
{
background
:
#fff
;
border
:
none
;
padding
:
12px
20px
;
font-weight
:
normal
;
text-align
:
left
;
border-top
:
1px
solid
#eee
;}
table
tr
.total
td
{
font-size
:
1.5em
;}
.btnsubmit
{
display
:
inline-block
;
padding
:
10px
;
border
:
1px
solid
#ddd
;
background
:
#eee
;
color
:
#000
;
text-decoration
:
none
;
margin
:
2em
0
;}
form
{
margin
:
2em
0
0
0
;}
label
{
display
:
inline-block
;
width
:
12em
;}
input
[
type
=
text
]
{
border
:
1px
solid
#bbb
;
padding
:
10px
;
width
:
30em
;}
textarea
{
border
:
1px
solid
#bbb
;
padding
:
10px
;
width
:
30em
;
height
:
5em
;
vertical-align
:
text-top
;
margin
:
0.3em
0
0
0
;}
.submitbtn
{
font-size
:
1.5em
;
display
:
inline-block
;
padding
:
10px
;
border
:
1px
solid
#ddd
;
background
:
#eee
;
color
:
#000
;
text-decoration
:
none
;
margin
:
0.5em
0
0
8em
;}
;
</style>
<title>
Pesan tiket
</title>
</head>
<ul
class=
"tp-hd-lft wow fadeInDown animated"
data-wow-delay=
"0.5s"
>
<body
class=
"metro"
>
<header
class=
"bg-darkCobalt"
data-load=
"atasan.php"
></header>
</body>
<?php
$host
=
"localhost"
;
// Host name
$username
=
"root"
;
// Mysql username
$password
=
""
;
// Mysql password
$db_name
=
"tbc"
;
// Database name
$tbl_name
=
"fpemesanan"
;
// Table name
// Connect to server and select database.
$conn
=
mysqli_connect
(
"
$host
"
,
"
$username
"
,
"
$password
"
)
or
die
(
"cannot connect"
);
mysqli_select_db
(
$conn
,
"
$db_name
"
)
or
die
(
"cannot select DB"
);
// get data that sent from form
$topic
=
$_POST
[
'topic'
];
$detail
=
$_POST
[
'detail'
];
$name
=
$_POST
[
'name'
];
$email
=
$_POST
[
'email'
];
$datetime
=
date
(
"d/m/y h:i:s"
);
//create date time
$sql
=
"INSERT INTO
$tbl_name
(topic, detail, name, email, datetime)VALUES('
$topic
', '
$detail
', '
$name
', '
$email
', '
$datetime
')"
;
$result
=
mysqli_query
(
$conn
,
$sql
);
if
(
$result
){
echo
"Tiket Berhasil Di pesan<BR>"
;
echo
"<a href=pemesanan_tiket.php>Lihat Pesanan</a>"
;
}
else
{
echo
"ERROR"
;
}
//mysql_close();
?>
<br><br>
<br><br>
<br><br><br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<br><br><br><br>
<br><br>
<br><br>
</div>
<footer
class=
"dark"
data-load=
"bawahan.php"
></footer>
</html>
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