gbammelet
Messages postés45Date d'inscriptionmardi 28 janvier 2014StatutMembreDernière intervention15 décembre 2015
-
17 févr. 2014 à 13:04
jordane45
Messages postés37850Date d'inscriptionmercredi 22 octobre 2003StatutModérateurDernière intervention30 novembre 2023
-
17 févr. 2014 à 14:41
Bonjour,
je veux faire afficher dynamiquement les images dans une galerie, mon code me permet d'afficher le title de l'image en la survolant mais l'image ne s'affiche pas
voilà le code:
<?php
require('./connect/connect.php');
$requete="select
ca.titre_making,
ca.stitre_making,
ca.photo_couv,
ca.date_making,
co.chemin,
co.title,
v.titre,
v.chemin
FROM making_off AS ca
JOIN image_off AS co ON ca.id_making=co.id_making
JOIN video_off AS v ON ca.id_making=v.id_making
";
if($result=mysql_query($requete)){
while($making=mysql_fetch_assoc($result)){
echo'<li>';
echo'<a href="img/$making["chemin"]" class="highslide"
onclick="return hs.expand(this, config1 )">
<img src="img/$making["chemin"]" width="100" height="100"
title="'.$making["title"].'" style="max-height:100px;max-width:100px;"/></a>';
echo'</li>';
}
}
?>
jordane45
Messages postés37850Date d'inscriptionmercredi 22 octobre 2003StatutModérateurDernière intervention30 novembre 2023343 Modifié par jordane45 le 17/02/2014 à 13:11
gbammelet
Messages postés45Date d'inscriptionmardi 28 janvier 2014StatutMembreDernière intervention15 décembre 2015 17 févr. 2014 à 14:32
ca ne marche toujours pas je vous transmet le code:
<?php
require('./connect/connect.php');
$requete="select
ca.titre_making,
ca.stitre_making,
ca.photo_couv,
ca.date_making,
co.chemin,
co.title,
v.titre,
v.chemin
FROM making_off AS ca
JOIN image_off AS co ON ca.id_making=co.id_making
JOIN video_off AS v ON ca.id_making=v.id_making
";
if($result=mysql_query($requete)){
while($making=mysql_fetch_assoc($result)){
echo'<li>';
echo'<a href=\"img/'.$making[\"chemin\"].'\" class="highslide"
onclick="return hs.expand(this, config1 )">
<img src="img/'.$making["\chemin\"].'" width="100" height="100"
title="'.$making["title"].'" style="max-