Tengo este codigo, que seguramente esten mal las sintaxis de las condiciones:
Cita: <?
$numimages = 3;
$random = rand(1, $numimages);
$img = array();
$img[1] = "Images/cabeseras/arma/logo1.gif";
$img[2] = "Images/cabeseras/arma/logo2.gif";
$img[3] = "Images/cabeseras/arma/logo3.gif";
?>
<?
$numimages = 4;
$random2 = rand(1, $numimages);
$img2 = array();
$img2[1] = "Images/cabeseras/mod/firestorm-02.gif";
$img2[2] = "Images/cabeseras/mod/firestorm-03.gif";
$img2[3] = "Images/cabeseras/mod/firestorm-03.gif";
$img2[4] = "Images/cabeseras/mod/firestorm-04.gif";
?>
<? if ($go=='Conflicto' or $go=='Proyecto' or $go=='Staff' or $go=='Mod-Addons')
{
echo '<table height='110' width='100%' style='border:1px solid black' background='$img2[$random2]'>';
}
else
{
echo '<table height='110' width='100%' style='border:1px solid black' background='$img[$random]'>';
}
?>
<tr>
<td>
</td>
</tr>
</table>
Genera imagenes aleatorias para usarlas en el background de la tabla.
Me pueden marcar el error por favor?
gracias