Bonjour j'ai un carrée sans les photos, voici le script en pdo, je vois l'erreur
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
37
38
39 <?php include'function.php'; $NbrLigne = 4; $profil_2 = $connection->prepare('SELECT * FROM profil_photo WHERE id_gal=:id_gal'); $profil_2 ->execute(array(':id_gal'=> $_GET['nom'])); // ------------------------------------------------------- // creation d'un seul array avec toutes les donnees $k=0; while($results_2 = $profil_2->fetch(PDO::FETCH_OBJ)){ $im = $results_2->gal; $tableau[$k] = $im; $k++; } // ------------------------------------------------------- // affichage if(!empty($k)){ miniature('image_profil/'.$k.'', 180, 130); redim('image_profil/'.$k.'', 600, 450); // ------------------------- // DONNEES A AFFICHER dans la cellule $k = ($i+($j*$NbrLigne)); ?> <a class="fancybox" rel="gallery1" href="<?php echo'MINI11image_profil/'.$k.''; ?>" title=""> <img src="<?php echo'MINI1image_profil/'.$k.''; ?>" border="0" alt="" class="blanc" /> <?PHP echo '<br/>'; // ------------------------- }else{ echo '<img src="images/no_photo.png" width="185" height="135" border="0" />'; }
Partager