-
Notifications
You must be signed in to change notification settings - Fork 1
/
Payment Script.php
87 lines (73 loc) · 2.34 KB
/
Payment Script.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<html>
<head>
</head>
<body>
<?php
$con = mysqli_connect('localhost','root','','movie magic');
$query = "select * from temp_payment";
$res = mysqli_query($con,$query);
while($data=mysqli_fetch_array($res))
{
?>
<table border="1">
<tr>
<td>
Movie :
</td>
<td>
<?php
$mid=$data['mid'];
$query2 = "select * from now_available where id=$mid";
$res2 = mysqli_query($con,$query2);
while($data2=mysqli_fetch_array($res2))
{
echo $data2['name'];
}
?>
</td>
</tr>
<tr>
<Td>
Time :
</Td>
<td>
<?php
$tid=$data['tid'];
$query3 = "select * from time_table where id=$tid";
$res3 = mysqli_query($con,$query3);
while($data3=mysqli_fetch_array($res3))
{
echo $data3['duration'];
}
?>
</td>
</tr>
<tr>
<Td>
Seat :
</Td>
<td>
<?php
$seat=$data['seat'];
echo $seat;
?>
</td>
</tr>
<tr>
<Td>
Total :
</Td>
<td>
<?php
$seat=$data['seat'];
$price = $data['price'];
echo $seat*$price;
?>
</td>
</tr>
</table>
<?php
}
?>
</body>
</html>