I don't know what's happening here but the album loop works fine but the song one is still taking all the songs and putting them in for each cd.
$album = mysql_query("SELECT DISTINCT music_album from music WHERE
music_artist = '".$myrow["music_artist"]."'");
$y=1;
while ($myrow2=mysql_fetch_array($album))
{
$alb_info = $myrow2["music_album"];
printf('<param name = menu1i%si%si%s value = "%s">
', $letter, $x, $y, $alb_info);
$song = mysql_query("SELECT DISTINCT music_song from music WHERE
music_artist = '".$myrow["music_artist"]."'");
$z=1;
while ($myrow3 = mysql_fetch_array($song))
{
$song_info = $myrow3["music_song"];
printf('<param name = menu1i%si%si%si%s value = "%s">
', $letter, $x, $y, $z, $song_info);
printf('<param name = menu1i%si%si%si%surl value ="%s/%s/%s/%s.mp3">
', $letter, $x, $y, $z, $URL, $art_info2, $alb_info2, $song_info2);
$z++;
}
$y++;
printf('
');
}
I have cut out parts that are not necessary to the problem.
My eyes are starting to bug out from looking at it so much. I need a new set (and a set that are more advanced than mine lol) to have a look at it.
After this one is fixed I think I have it done. You guys have helped me out so much I think I'm going to owe you guys a lot of beer for all your help. lol
Cheers,
Jaymz