
Forum » » Pour débuter » » affichage aléatoire d'images (PHP)
Posté : 19-01-2008 14:24 
<?
$cpt=10;
srand((double)microtime()*1000000);
$nbr=rand(0,($cpt-1));
print ("<img
src='/photos_accueil/photo$nbr.jpg' alt=''></a>");v
?>
Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=23210&forum=10