Je cherche le moyen d'afficher les images que je fais défiler dans un ordre aléatoire.
voici comment j'affiche les photos :
<?php
$sqldip = 'select * from nuked_photo where visible = 1';
$resselectdip = mysql_query($sqldip);
$maxi = mysql_num_rows($resselectdip);
$photo = rand(1, $maxi)-1;
mysql_data_seek($resselectdip, $photo);
$selectdip = mysql_fetch_array($resselectdip);
if ($selectdip["lien"] == NULL)
$temp = "";
else {
$width = 150;
$height = 100;
$temp = '<a href="javascript:MM_openBrWindow(\'zoom.php?url='.$selectdip["lien"].'\',\'photos\',\'width='.$width.',height='.$height.'\');">';
}
print $temp.'<img src="'.$selectdip["lien"].'" border="0"></a><br>';
?>
Merci pour votre aide !