'$row[start]';"; $result = db_query($query, $connection); if (mysql_num_rows($result) > 0) { $_SESSION[errorMessage] = "There is an overlap. Booking not possible"; header("Location: error.php"); exit; } $query = "update car_booking set car_id=$_GET[carid] where id=$_GET[bid];"; db_query($query, $connection); header("Location: car_booking.php"); include("header.php.inc"); ?>