----- Original Message ----- From: "Robert Cummings" <[EMAIL PROTECTED]> > Glenn Sieb wrote: > > $cname = (strcmp($previous,$line) > > ? $line : " "); > > print ("<TR > > BGCOLOR=#$color>\n\t<TD>$line</TD>\n\t<TD>$cname</TD>\n\t<TD>$line</TD >\n</TR>\n"); > > $previous = $line; > > } > > print ("</TABLE>"); > > > > This not only takes care of the table row colors, but also removes > > duplicate company names so it looks MUCH neater this way :)))) > > YIKES! I thought there was a SQL keyword for returning a unique > rowset.
Read the code again, that's what I first thought, too. He's just not printing multiple values for the first table cell. So if the current row has the same company name, just print a blank cell, then print the rest of the data for that row. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php