$result = mysql_query("SELECT * FROM table_name")
while( $row = mysql_fetch_array($result) )
{
$row0 = $row[0];
$row1 = $row[1]
$row2 = $row[2]
$row3 = $row[3]
if( $row0 == $row0set )
{
unset($row0);
}
if( $row1 == $row1set )
{
unset($row1);
}
if( $row2 == $row2set )
{
unset($row2);
}
echo("
$row0, $row1, $row2, $row3
");
$row0set = $row0;
$row1set = $row1;
$row2set = $row2;
}
Someone try that and see if it works. I'm at work and cant do it from here.
The idea is that if a new items comes along, it'll be printed, other wise it gets blanked. That is, a new value for $rowX will keep it from being unset, and every identical one after that will match, and there fore get unset.
Lemme know if that worked.