hi everyone thanx alot for helping me u solved me many problem so i need ur help again after i'm login and choose a movie that the person want to watch it i'm create table time and i insert the time for booking and the user will choose the time that he can choose it work but if he dosen't choose time and enter booking they show me error here my code
<?php
session_start();
require("../../../dbc.php");
if(isset($_POST['submit']))
{
$start =mysql_real_escape_string($_POST['start']);
if ($start)
{
$connect=mysql_connect("127.0.0.1","root","") or die("couldnt connect to database");
mysql_select_db("login") or die("couldnt find database");
$query = mysql_query("SELECT * FROM `time` WHERE `start` ='$start'");
$numrow = mysql_num_rows($query);
if($numrow !=0)
{
while($row = mysql_fetch_assoc($query))
{
$dbstart= $row['start'];
}
if($start==$dbstart)
{
echo header("location:book.php");
$_SESSION['start'] = $dbstart ;
}
}
}
else
die( " please enter the time .<a href='../3D The Croods.php'>click here to choose time</a>");
}
?>