-
Notifications
You must be signed in to change notification settings - Fork 32
/
load.php
executable file
·70 lines (54 loc) · 1.98 KB
/
load.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
<?php
include('db/db.php');
include('frontend.php');
//Database connection selection
$db=new db();
$db->db_connect();
$db->db_select();
$frontend=new frontend();
//loation
$array=$frontend->getlocation();
$size=sizeof($array);
$t_size=$size;
$i=0;
$t=0;
if($_POST)
{
$location_id=$_POST['location'];
$movie_id=$_POST['movies'];
$query="SELECT t.*,m.name as moviename,m.rating,m.image,m.cast,l.location FROM theatres t
LEFT JOIN movies m on m.id=t.movies_id
LEFT JOIN location l on l.id=t.location_id WHERE t.movies_id=$movie_id AND t.location_id=$location_id";
$result=mysql_query($query);
$row=mysql_fetch_array($result);
?>
<table style="background:white">
<tr style="background:#3399ff;color:white">
<td colspan=2> Movie In <b><?php echo $row['location'];?></b></td>
</tr>
<tr>
<td style="padding:5px" valign="top">
<table>
<tr>
<td>
<img src="uploads/<?php echo $row['image'];?>" height="200"/>
</td>
<td valign="top">
<br/>
</td>
</tr>
</table>
</td>
<td valign="top">
<h2><?php echo $row['moviename']; ?></h2>
<b>Theatre:</b> <pstyle="color:f71d57"><?php echo $row['name']; ?></p>
<p><b>Addr:</b> <?php echo $row['address']; ?></p>
<span style="color:#444444"><b>Timings:</b> 11:00 am 2:30 pm 6:15pm 9:30pm</span><br/><br/>
<b>Rating:</b> <?php echo $row['rating'];?>/5<br/><br/>
<b>Cast:</b> <?php echo $row['cast'];?><br/>
</td>
</tr>
</table>
<?php
}
?>