Bonjour, j'ai un soucis pour afficher les photos?
je fait un test var_dump à image_plus ok mais dans la boucle K rien, je comprends pas
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 <?PHP include_once'function_mini.php'; $NbrLigne = 4; $photo = $connection->prepare('SELECT * FROM photo_profil WHERE id_membre=:id_membre'); $photo->execute(array(':id_membre'=>$detail)); // ------------------------------------------------------- // creation d'un seul array avec toutes les donnees $k=0; while($data = $photo->fetch()){ $image_plus = $data['chemin']; $imge[$k] = $image_plus; $k++; } // ------------------------------------------------------- // affichage if(!empty($imge[$k])){ vignette('image_profil/'.$imge[$k].'',185, 135); redim('image_profil/'.$imge[$k].'', 600, 450); // ------------------------- // DONNEES A AFFICHER dans la cellule $k = ($i+($j*$NbrLigne)); ?> <a class="fancybox" rel="gallery1" href="<?php echo'MINI1image_profil/'.$imge[$k].''; ?>" title=""> <img src="<?php echo'MINIimage_profil/'.$imge[$k].''; ?>" border="0" alt="" class="blanc" /> <?PHP echo '<br/>'; // ------------------------- }else{ echo '<img src="imdesign/no_photo.png" width="185" height="135" border="0" />'; } ?>
Partager