mvc php 3
1.1
$idR = $_GET["idR"];
unResto = getRestoByIdR(
idR);
1.2
echo $lesPhotos[0]['chemin'];.
1.3
Cette commande permettra de verifier si le tableau associatif lesPhotos contient des photos
1.4
<p id="principal">
<img src="<?php echo "photos/".$lesPhotos[0]['chemin']; ?>"/>
.../...
1.5
<?php
if(count($lesPhotos) > 0){
for($i=0; $i <= count($lesPhotos) - 1; $i++){
?>
<img src="<?php echo "photos/".$lesPhotos[$i]['chemin']; ?>"/>
<?php
}
}
?>
2.1
$lesTypesDeCuisine -> modele >bd.typecuisine.inc.php > function getTypesCuisineByIdR($idR)
2.2
$lesTypesDeCuisine -> id_tc
-> libelle
2.3
$lesTypesDeCuisine[0]['libelle']
2.4
3.1
$unResto -> modele bd.resto.inc.php -> function getRestosByNomR($nomR)
3.2
$unResto -> id, nom, num_adr, voie_adr, cp, ville, latitude, longitude, desc_resto, horaires.
3.3
un seul restaurant dans cette variable.
3.4
$unResto[0]['nom']
4.1
isLoggedOn();
5.1
$mesTypesCuisineAimes[0]['libelle']
5.2
0){ for($i=0; $i <= count($mesTypesCuisineAimes) - 1; $i++){ ?> <?php
}
}
?>
6.1
$mesRestosAimes[0]['nom'];
Edited by Khelvin Angatahy