<?php
$sql = "INSERT INTO reservations (holiday_id, name, address, city, country, tel, fax, email, room_type, arrival_date, departure_date, adults, children, payment, subject, comments, source, source_url) VALUES ('$holiday_id', '$name', '$address', '$city', '$country', '$tel', '$fax', '$email', '$room', '$arrivaldate', '$departuredate', '$adults', '$children', '$payment', '$interes', '$comment', 'Form $page', '$pageurl')";
			$result = mysql_query($sql);
			?>
<?php if ($holiday_id!="0") { ?>
           <?php 
			$dbh=mysql_connect("www.holiday.gr","holiday_developer","repoleved");
            mysql_select_db("holiday_customers",$dbh);
			$sql = "INSERT INTO RESERVATIONS_TABLE (HOLIDAY_ID, NAME, ADDRESS, CITY, COUNTRY, PHONE, FAX, EMAIL, ROOM_TYPE, ARRIVAL_DATE, DEPARTURE_DATE, ADULTS, CHILDREN, PAYMENT, SUBJECT, COMMENTS, SOURCE, SOURCE_URL) VALUES ('$holiday_id', '$name', '$address', '$city', '$country', '$tel', '$fax', '$email', '$room', '$arrivaldate', '$departuredate', '$adults', '$children', '$payment', '$interes', '$comment', 'Form $page', '$pageurl')";
			$result = mysql_query($sql);
			?>
<?php }?>