This is the code that I have:
<?php
$x=1;
$artist = mysql_query("SELECT DISTINCT music_artist from music WHERE
music_artist LIKE 'A%'");
while ($myrow=mysql_fetch_array($artist))
{
$art_info = $myrow["music_artist"];
printf('<param name = menu1i1i%s value = "%s">
', $x, $art_info);
$album = mysql_query("SELECT DISTINCT music_album from music WHERE
music_artist = '".$myrow["music_artist"]."'");
$y=1;
while ($myrow=mysql_fetch_array($album))
{
$alb_info = $myrow["music_album"];
printf('<param name = menu1i1i%si%s value = "%s">
', $x, $y, $alb_info);
$y++;
printf('
');
}
$x++;
printf('
');
}
?>
the code is used to populate an applet.
the printf's are used to print the applet tags and to space it out when the html is created.
I inserted the code that you sudgested to me but it never made any differance to what it was before.
I get the artist to come out in order ok...but I get the cd's of both artist for each artist and all the songs from the cd's for each cd.
So I would get Beatles and Beasty Boys fine.
but under Beatles I would get their albums and the Beasty Boys albums. The same holds true for the Beasty Boys. Then I would get all the songs from those albums under each of the Beatles cd's and the Beasty Boys cd's.
I'm starting to get into a panic now...I need this done by the end of the week. lol
Thanks,
Jaymz