J'ai un soucis sur un affichage mais je n'arrive pas a savoir comment faire
Voici la fonction d'affichage
iinclude("../HTML/entete_all1.html");
echo "<div class=Style21 id=Layer12><table width=480 height=119 >";
foreach($tab_mois as $tab)
{
echo"<tr><td width = 250><font face=Bodoni MT size = 4><a href=../Frontcontroller/Frontcontroler.php?page=more&id=".$tab['Id_Hotel']."><u>".$tab['Nom_Hotel']."</u></a></font> ";
$cat = $tab['Categorie_hotel'];
for ($i=0; $i<$cat;$i++)
{
echo "<img src=../HTML/images/star2an.gif>";
}
echo "</td><td ><strong>".$tab['Nom_Ville']."</strong></td></tr>";
foreach ($tab_photo_mois as $ $photo)
{
if($tab['Id_Hotel'] == $photo['Id_Hotel'])
{
echo "<td>caca</td>";
}
else
echo "<td>pipi</td>";
}
}
include("../HTML/footer_all2.html");
}
Le résultat que j'aimerai avoir c'est dès que qu'il rencontre le même nomde l'hotel il m'affiche la photo.
J'ai beau retourner ca dans tous les sens mais ca marche pa
Merci de votre aide
Déborah