Re: echo - random
| From: | Admin - Webproffecional | Date: | Thu, 23 Aug 2001 17:24:20 +0000 |
| Subject: | Re: echo - random | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-13196@lists.php.net to get a copy of this message | ||
lo hice pero no lo muestra , no entiendo , solo lo muestra si le doy ver
codigo fuente , hay recien veo la frace.
----- Original Message -----
From: "Ing. Luis Rodríguez" <>
To: <lista@phpes.com>
Sent: Thursday, August 23, 2001 3:18 PM
Subject: Re: [PHP-ES] echo - random
> el codigo que mandas es el que estas utlizando tal cual?
>
> el random de $txt[] le falta $ -> $random
> y </a
> </a>
>
> Webmaster - Barra Home wrote:
>
> > Consulta , No Me Funca esta q hice , a q se debera ? , tecnicamente esta
bien
> >
> > <?
> > $tamaño = "1";
> > $letra = "Verdana";
> > $color = "black" ;
> >
> > $numbanners = 3 ;
> > $random = rand(1,$numbanners);
> >
> > $txt = array();
> >
> > $txt[1] = "El dinero es si no da felicidad... ¡La trae incluida!";
> > $link[1]= "http://www.hackingballz.com" ;
> >
> > $txt[2] = "Los hombres dan amor para recibir sexo...";
> > $link[2]= "http://www.hackingballz.com" ;
> >
> > $txt[3] = "...las mujeres dan sexo para recibir amor.";
> > $link[3]= "http://www.hackingballz.com" ;
> >
> > echo "<font size='$tamaño'><b><font face='$letra'
> > color='$color'><a
> > href='$link[$random]'
> >
> > target='_blank'><alt='$txt[random]'></a</font></b></font>";
> > ?>
>
> --
>
> ----------------------
> Ing. Luis Rodríguez
> Internet Sales Systems
>
>
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>