
24/10/2005, 15:46
|
| | Fecha de Ingreso: febrero-2005
Mensajes: 187
Antigüedad: 20 años, 2 meses Puntos: 2 | |
<?
$keywords = 2; //numero de textos que se rotarán
$random = rand(1,$keywords);
$txt = array();
$txt[1] = "texto1";
$txt[2] = "texto2";
echo $txt[$random];
?>
te faltaba el $, en : echo ($txt[random]);
te sobraban los parentesis, en: echo ($txt[random]);
con eso debe funcionar. |