merhaba arkadaşlar,
elimde 5-6 tane resim var ben bunu her sayfa yenilendiğinde random göstermek istiyorum ama link vermek istiyorum bunun kodunu buldum ama link veremiyorum..
acab elinde olan varsa paylaşabilir mi ?
ufak bir kod isteği
12
●937
- 19-11-2009, 11:08:52Üyeliği durduruldubu işinizi görür;
<?php $resim[] = 'http://site.com/resim1.jpg'; $resim[] = 'http://site.com/resim2.jpg'; $resim[] = 'http://site.com/resim3.jpg'; $resim[] = 'http://site.com/resim4.jpg'; $resim[] = 'http://site.com/resim5.jpg'; $rastgele = $resim[rand(0, count($resim) - 1)]; ?> <a href="<?php echo $rastgele; ?>"><img src="<?php echo $rastgele; ?>" /></a>
bu arada ByMsT phpde random diye fonksiyon yok yanlış yazmışsın rand olacak - 19-11-2009, 11:28:55Üyeliği durduruldu<img style="border: 0" src="<?php echo $rastgele; ?>" />