'$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 = "insert into car_booking (car_id, start, end, user_id, request_id) ". "values ($_GET[carid], '$row[start]', '$row[end]', $row[user_id], $_GET[rid]);"; db_query($query, $connection); $query = "update car_request set status='c' where id=$_GET[rid];"; db_query($query, $connection); include("header.php.inc"); echo $query; ?>

Request approval

The request by for the period from to has been accepted for the whole period.
\r\n". "Reply-To: $_SESSION[email]"); echo "The following e-mail was sent to $email_to :"; echo "
".$email_txt."
"; ?>