Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
340CTResit/load.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
70 lines (54 sloc)
1.98 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
} | |
?> |