This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require "conexion.php"; | |
//Selecci�n de habitaciones | |
if ($_SERVER['REQUEST_METHOD'] === 'GET') { | |
extract($_GET); | |
if (count($_GET) == 0) { | |
$where = ''; // Condici�n inicial inexistente, para devolver todas las habitaciones en caso de no recibir ning�n dato por GET | |
} | |
// B�squeda por n�mero de habitaci�n y fecha de salida. Datos enviados en el URL. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <malloc.h> | |
#include <time.h> | |
#include <math.h> |