booked movies
connect_error) { die("Connection failed: " . $conn->connect_error); } // Create database $sql = "use project"; if ($conn->query($sql) === TRUE) {} else { echo "Error creating database: " . $conn->error; } $sq= "SELECT Tid,Tname,Tvanue,QTY,Ttime, Tprice FROM theatre,book where Tid=Eid and umail='$umail' "; $result = $conn->query($sq); if ($result->num_rows> 0) { // output data of each row while($row = $result->fetch_assoc()) { $z=$row["Tname"]; $y=$row["QTY"]; $a=$row["Tid"]; $b=$row["Tvanue"]; $c=$row["Ttime"]; $e=$row["Tprice"]; echo NL2BR("THEATRE NAME: $z \n event_id: $a vanue: $b time: $c ");echo nl2br("\t cost: $e for: $y people\n") ; } } else { echo "0 results"; } $conn->close(); ?>