Skip to content
Permalink
0c7261ca3d
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
25 lines (19 sloc) 490 Bytes
<?php
include('db/db.php');
//Database connection selection
$db=new db();
$db->db_connect();
$db->db_select();
if($_POST['id'])
{
$id=$_POST['id'];
$sql=mysql_query("select m.* from theatres t left join movies m on m.id=t.movies_id Left join location l on l.id=t.location_id where l.id='$id'");
while($row=mysql_fetch_array($sql))
{
$id=$row['id'];
$data=$row['name'];
$a=$a.'<option style="color:red" value="'.$id.'" >'.$data.'</option><br/>';
}
echo $a;
}
?>