} else { if (isset($_POST['search_flight'])) { $source = $_POST['source']; $destination = $_POST['destination']; $num = $_POST['no_of_tickets']; $date = $_POST['depart_date']; ?> <h2>Flights from <?php echo $source; ?> to <?php echo $destination; ?> </h2> <?php $search = $user_object->flight_details($con, $source, $destination); $_SESSION['number'] = $num; if (mysqli_num_rows($search) == 0) { echo "No flight available."; } else { echo '<table cellspacing="10"> <tr> <th>Flight Id</th> <th>Flight Name</th> <th>Depart</th> <th>Arrive</th> <th>Duration</th> <th>Price</th> <th>Stoppages</th> </tr>'; $date = "'" . $date . "'";