1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
$tab_com = mysql_query("SELECT COUNT(num_chambre) FROM appartenir where num_chambre NOT IN (select num_chambre from reserver where date_arrivee = '".$date."' and date_depart = '".$date1."' ) and num_categorie = '".$personne."' ", $base);
$dispo=mysql_num_rows($tab_com);
if($dispo )
{
echo "il y a des chambres $personne personne de disponible pour cette date";
echo "<br><br>";
echo "Aucune chambre $personne personne de disponible pour cette date";
$tab_com1 = mysql_query("SELECT COUNT(num_chambre) FROM appartenir where num_chambre NOT IN (select num_chambre from reserver where date_arrivee = '".$date."' and date_depart = '".$date1."' ) num_categorie = '".$personne1."' ", $base);
$dispo1=mysql_num_rows($tab_com1);
if($dispo1 )
{
echo "il y a des chambres $personne1 personne de disponible pour cette date";
echo "<br><br>";
echo "Aucune chambre $personne1 personne de disponible pour cette date"; |
Partager