|
|
|
include('funciones.php') ?>
$nonext="";
$nonext2="";
$nonext3="";
$nonext4="";
$sql="SELECT * FROM savspecial where idpais=".IDPAIS." AND mkhora>=".mktime(0, 0, 0, $_REQUEST['mespickup'], $_REQUEST["diapickup"], $_REQUEST['yearpickup'])." and mkhora<=".mktime(0, 0, 0, $_REQUEST['mesreturn'], $_REQUEST["diareturn"], $_REQUEST['yearreturn'])." and cCodIntern='".$_REQUEST['tipo']."'";
$result = mysql_query($sql) or die ("Could not query");
if (mysql_affected_rows() > 0)
{
$nonext="1";
$nonext2=" Sorry, we do not have availability for those dates";
}
if ($nonext!="" or $_REQUEST["ch"]=="1" or $HTTP_SESSION_VARS["reservaciones1"]=="1")
{
if($_REQUEST["err3"]=="1") {
$nonext3=" Sorry, The return day have to be one day later.";
}
if($_REQUEST["err4"]=="1") {
$nonext3=" Sorry de pick up date must start at least tomorrow";
}
session_unset();
session_destroy();
?>
}else{ ?>
include('flota.php');
?>
|
|
| |
 |
|
|
|