Hola,
Siento no ser muy bueno en PHP, pero no sale nada, no encuentra la ruta.
He puesto:
<div><a href="hachettpdospuntos//3w."
<?php echo $direcciones[1] ?>><img src="../imagen/aleatorio/<?php echo $r1; ?>.jpg" width="174" height="85" /></a></div>
también
<div><a href="hachettpdospuntos//3w."
<?php echo $direcciones[$1] ?>><img src="../imagen/aleatorio/<?php echo $r1; ?>.jpg" width="174" height="85" /></a></div>
Y me sale lo mismo que antes:
http
:
//
3w.
Te recuerdo lo que tengo en php
Si que cada vez pone uno aleatorio pero el link no va
<?php
$direcciones = array("forosdelwebpuntocom", "terrapuntocom", "adobepuntocom", "terrapuntocom", "adobepuntocom", "forosdelwebpuntocom", "terrapuntocom", "adobepuntocom", "terrapuntocom");
$r1=rand(1,9);
$r2=rand(1,9);
$r3=rand(1,9);
$r4=rand(1,9);
$r5=rand(1,9);
$r6=rand(1,9);
do {
$r2=rand(1,9);
}while ($r2==$r1);
do {
$r3=rand(1,9);
}while ($r3==$r1 or $r3==$r2);
do {
$r4=rand(1,9);
}while ($r4==$r1 or $r4==$r2 or $r4==$r3);
do {
$r5=rand(1,9);
}while ($r5==$r1 or $r5==$r2 or $r5==$r3 or $r5==$r4);
do {
$r6=rand(1,9);
}while ($r6==$r1 or $r6==$r2 or $r6==$r3 or $r6==$r4 or $r6==$r5);
do {
$r7=rand(1,9);
}while ($r7==$r1 or $r7==$r2 or $r7==$r3 or $r7==$r4 or $r7==$r5 or $r7==$r6);
do {
$r8=rand(1,9);
}while ($r8==$r1 or $r8==$r2 or $r8==$r3 or $r8==$r4 or $r8==$r5 or $r8==$r6 or $r8==$r7);
do {
$r9=rand(1,9);
}while ($r9==$r1 or $r9==$r2 or $r9==$r3 or $r9==$r4 or $r9==$r5 or $r9==$r6 or $r9==$r7 or $r9==$r8);
?>