First of all, I'd like to thank everyone who has helped me through this learning process thus far.. it is MUCH appreciated!
Today's technically difficulties are:
I'm trying to display a table and each row have the $sion, $form, and all $Artist,$Song,$stat that share the same $sion (if that makes sense).. I'll give an example after the PHP i have...
$result = mysql_query( "SELECT DISTINCT u.sid, u.soid, u.aid, u.stat,a.*,s.*,t.*,f.* FROM a, s, t, u, f WHERE u.soid=s.soid and u.sid=t.sid and a.aid=s.aid and t.fat=f.fat");
for($row_count = 0; $row = mysql_fetch_array($result); $row_count++){
$Artist = $row["an"];
$Song = $row["st"];
$Sion = $row["cl"];
$form = $row["form"];
$stat = $row["stat"];
$row_color = ($row_count % 2) ? $color1 : $color2;
$array = array($Artist, $Song, $stat);
echo "<tr class=\"$row_color\"><td>$Sion</td><td>$form</td><td><table><tr>"; foreach ($array as &$value){echo "<td>$value</td>";} echo "</tr></table></td></tr>";}
Let's say there are 3 songs that fall under sion1, 1 song under sion2, and 2 songs under sion3... so results should display like so:
$sion | $form | $Artist | $Song | $stat
$Artist | $Song | $stat
$Artist | $Song | $stat
$sion2 | $form | $Artist | $Song | $stat
$sion3 | $form | $Artist | $Song | $stat
$Artist | $Song | $stat
Thanks!