Ferby: Array geht nicht

Beitrag lesen

Hallo,

ich habe folgenden PHP Script geschrieben:

<?

echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n\n";

echo "<html>\n\n";

echo "<head>\n";
echo "<meta http-equiv='content-type' content='text/html; charset=ISO-8859-1'>\n";
echo "<meta http-equiv='expires' content='0'>\n";
echo "<link rel='stylesheet' type='text/css' href='../grau.css'>\n";
echo "<title></title>\n";
echo "</head>\n\n";

echo "<body>\n\n";

$alt[1][1]="Engelwandtunnel und Brücke";
$alt[1][2]="Engelwandtunnel und Brücke";

echo "<a href='p.php?f=1&anzahl=15'>Motive Arlbergbahn</a> &nbsp; &nbsp; &nbsp; &nbsp;\n";
echo "<a href='p.php?f=2&anzahl=10'>Motive Arlbergbahn</a> &nbsp; &nbsp; &nbsp; &nbsp;\n";
echo "<a href='p.php?f=3&anzahl=6'>Schweizer Motive</a> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;\n";
echo "<a href='p.php?f=4&anzahl=5'>Rosenbachviadukt</a> &nbsp; &nbsp; &nbsp; &nbsp;\n";
echo "<a href='p.php?f=5&anzahl=10'>Ravennaviadukt</a>";
echo "<br><br>\n\n";

while ($x != $anzahl)
{
$x++;
echo "<a href='f1/1.html' border=0><img src='$f/$x.jpg' width=148 height=100 alt='$alt[$f][$x]' border=0>&nbsp;\n";
}

echo "<div id='menue_fotos_unten'>\n";
echo "<a href='p.php?f=6&anzahl=11'>Diverses</a>&nbsp; &nbsp;&nbsp;&nbsp;\n";
echo "<a href='p.php?f=7&anzahl=14'>Laab im Walde 2003</a>\n";

echo "</body>\n\n";

echo "</html>";

?>

Alles funktioniert nur der alt text geht nicht, eigentlich sollte ja statt $alt[$f][$x] dann Engelwandtunnel und Brücke da stehtn (bei den ersten beiden Bildern) aber es steht dann da: Array[1] warum?
Danke für eure hilfe.