![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)
Tengo un pequeñin problema
![triste](http://static.forosdelweb.com/fdwtheme/images/smilies/frown.png)
El Script en php que les mostrare hace que me visualice 6 imagenes que tube que poner randon distintos para que me muestre las 6 imagenes pero el detalle es de que se repiten las imagenes
![enojado](http://static.forosdelweb.com/fdwtheme/images/smilies/enojado.png)
Cita:
Muchas Gracias de antemano. PD: Imagenes de prueba para que lo prueben en su localhost mas rápido.
Código PHP:
<?php
$numbanners = 6; //Numero de imagenes
$random1 = rand(1,$numbanners);
$random2 = rand(2,$numbanners);
$random3 = rand(3,$numbanners);
$random4 = rand(4,$numbanners);
$random5 = rand(5,$numbanners);
$random6 = rand(6,$numbanners);
$img = array();
$url = array();
$txt = array();
$img[1] = "http://nahjupr.files.wordpress.com/2009/01/wordpress-logo.png?w=300";
$url[1] = "http://www.1.com";
$txt[1] = "Visita el enlace del banner 1";
$img[2] = "http://img.dinero20.com/wp-content/uploads/2010/02/joomla.png";
$url[2] = "http://www.2.com";
$txt[2] = "Visita el enlace del banner 2";
$img[3] = "http://www.psd2xhtmlcoder.com/images/osCommerceLogo.jpg";
$url[3] = "http://www.3.com";
$txt[3] = "Visita el enlace del banner 3";
$img[4] = "http://www.readwriteweb.es/wp-content/uploads/2010/12/drupal-logo.jpg";
$url[4] = "http://www.4.com";
$txt[4] = "Visita el enlace del banner 4";
$img[5] = "http://www.pcdigital.org/wp-content/uploads/2009/07/twitter-social.jpg";
$url[5] = "http://www.5.COM";
$txt[5] = "Visita el enlace del banner 5";
$img[6] = "http://cdn.alt1040.com/files/2010/05/facebook_logo.png";
$url[6] = "http://www.6.COM";
$txt[6] = "Visita el enlace del banner 6";
echo "
<a href='$url[$random1]'><img src='$img[$random1]' border='0' width='200' height='200'></a>
<a href='$url[$random2]'><img src='$img[$random2]' border='0' width='200' height='200'></a>
<a href='$url[$random3]'><img src='$img[$random3]' border='0' width='200' height='200'></a>
<a href='$url[$random4]'><img src='$img[$random4]' border='0' width='200' height='200'></a>
<a href='$url[$random5]'><img src='$img[$random5]' border='0' width='200' height='200'></a>
<a href='$url[$random6]'><img src='$img[$random6]' border='0' width='200' height='200'></a>
";
?>
![En dos](http://static.forosdelweb.com/fdwtheme/images/smilies/partido.png)