Random image


is something wrong with this code

<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
$file_array = array
$total = count($file_array);
$random = (mt_rand()%$total);
$file = "$file_array[$random]";
print("<img src=$file></a>");

i get this error
Parse error: parse error, unexpected ‘;’, expecting ‘)’ in /home/koddinn/public_html/prufa/random/random.php on line 14

you have a comma at the end of the 5.jpg line and i don’t see another element following it so you’d better close the array there

stupid me, of course…thx