Bonjour,
Pouvez vous m'aidez car je ne comprend pas l'érreur qui s'affiche ainsi que pourquoi les images ne s'affiches pas quand je clique sur celle-ci.
le code de la page galerie.php :
<html>
<head>
<title>p3x_galerie</title>
</head>
<body>
<table align="center" borde="0" width="90%">
<tr>
<td>
<font size="5"><b>p3x_galerie</b></font><hr /><br />
<?php
$row = 0;
$folder = "images"; //--->>> C'EST ICI QUE L'ON MODIFIE LE NOM DU DOSSIER OU L'ON PLACE LES IMAGES <<<---///
$dossier = opendir($folder);
while($fichier = readdir($dossier))
{
if($fichier != "." && $fichier != "..")
{
$row=$row+1;
$var = explode(".",$fichier);
$nb = count($var)-1;
$texte = substr($fichier, 0, strlen($fichier)-strlen($var[$nb])-1);
?>
<a href="galerie.php?images=<?php echo $fichier; ?>"><?php echo $texte; ?></a> |
<?php
}
}
closedir($dossier);
echo "<br /><br />";
if($row == 1)
{
echo "Il y a ".$row." image d'enregistrée<br />";
}
if ($row == 0)
{
echo "Il n'y a aucune image d'enregistrée<br />";
}
if($row != 1 AND $row != 0)
{
echo "Il y a ".$row." images d'enregistrées<br />";
}
echo "<br />";
if($image!=NULL)
{
echo "<img border=\"1\" src=\"images/".$image."\" /><br /><br />".$image;
}
?>
</td>
</tr>
</table>
</body>
</html>
script pas de moi