Hi,
Ich hab ein Script:
der Inhalt des Includes sieht so aus:
Ergebnis:
Was ist da mit der Varable $track[td][] = "Break On Through"; passiert ?! Wieso wird diese nicht als erstes ausgegeben ?
Gruß,
Syco
P.S. Warum fürht das zu überhaupt keinem Ergebnis:
Ich hab ein Script:
PHP-Code:
include ("td_songlist.php");
$lp = "td";
echo "$td <br />";
reset ($track);
$anzahl = count($track[$lp]);
for ($i=1; $i<$anzahl; $i++):
printf("i: %d track[$lp][%d] = %s<br>\n", $i, $i, $track[$lp][$i]);
endfor;
PHP-Code:
<?php
$td = "The Doors";
$track[td][] = "Break On Through";
$track[td][] = "Soul Kitchen";
$track[td][] = "The Crystal Ship";
$track[td][] = "Twentieth Century Fox";
$track[td][] = "Alabama Song (Whisky Bar)";
$track[td][] = "Light My Fire";
$track[td][] = "Back Door Man";
$track[td][] = "I Looked At You";
$track[td][] = "End Of The Night";
$track[td][] = "Take It As It Comes";
$track[td][] = "The End";
$track[sp][] = "The Soft Parade";
$track[sp][] = "Irgendwas SP";
$track[mh][] = "Morrison Hotel";
$track[mh][] = "Morrison Hotel2";
?>
The Doors
i: 1 track[td][1] = Soul Kitchen
i: 2 track[td][2] = The Crystal Ship
i: 3 track[td][3] = Twentieth Century Fox
i: 4 track[td][4] = Alabama Song (Whisky Bar)
i: 5 track[td][5] = Light My Fire
i: 6 track[td][6] = Back Door Man
i: 7 track[td][7] = I Looked At You
i: 8 track[td][8] = End Of The Night
i: 9 track[td][9] = Take It As It Comes
i: 10 track[td][10] = The End
i: 1 track[td][1] = Soul Kitchen
i: 2 track[td][2] = The Crystal Ship
i: 3 track[td][3] = Twentieth Century Fox
i: 4 track[td][4] = Alabama Song (Whisky Bar)
i: 5 track[td][5] = Light My Fire
i: 6 track[td][6] = Back Door Man
i: 7 track[td][7] = I Looked At You
i: 8 track[td][8] = End Of The Night
i: 9 track[td][9] = Take It As It Comes
i: 10 track[td][10] = The End
Gruß,
Syco
P.S. Warum fürht das zu überhaupt keinem Ergebnis:
PHP-Code:
foreach ($track as $anzeige)
{
echo "$counter, <br />";
echo $anzeige;
$counter++;
}
Um 7:51 gibts wohl nur 2 Möglichkeiten: entweder du bist nicht mehr fit oder du bist noch nicht fit. Aber Alk war auch noch dabei. Ich hab die ganz Nacht durchgeproggt bzw. mir mal die Basics der Basics von php angeeignet.
Kommentar