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