$repertoire = "../../photos/entete"; ?> $handle = opendir($repertoire); while ($file = readdir($handle)) { if(preg_match ("!(\.jpg|\.jpeg|\.gif|\.bmp|\.png|\.tiff)$!i", $file)) { $photos[] = $file; } } closedir($handle); rand(0, count($photos)); $random_img = rand(0, count($photos) - 1); ?>
Produits | Description | Prix | Condition | Commentaire | |
---|---|---|---|---|---|
$produit | "; echo "$description | "; if ($prix == 0) echo "- | "; else echo "$prix< | "; echo "$prix_condition | "; echo "$commentaire | "; echo "
Page valide XHTML 1.0 Strict et CSS2