Thanks for the quick reply. It didnt seem to work for me. Is there another piece that i am missing? I think i would like to build an array just have a bit of control. Thanks for looking at this is is MUCH appreciated
This is the error i get in my browser:
Parse error: parse error, unexpected T_VARIABLE in G:\HTML_WorkingFiles\Data\demo2.php on line 10
Here is my code:
<html>
<head>
<title></title>
</head>
<body>
<?
$colors[0] = "#000000"
$colors[1] = "#000033"
$colors[2] = "#000066"
$colors[3] = "#000099"
?>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="100%" bgcolor="<? echo $colors[array_rand($colors)]; ?>"></td>
</tr>
</table>
</body>
</html>