I changed the code to:
<?php
$last_memno = "";
while($row_rs_members = mysql_fetch_array($rs_members)) {
if ($last_memno != $row_rs_members["memno"])
?>
<?php echo $row_rs_members['memno']; ?> |
<?php echo $row_rs_members['stage_last']; ?> |
<?php echo $row_rs_members['stage_first']; ?> |
<?php echo $row_rs_members['specialty']."<br>\n";
$last_memno = $row_rs_members["memno"];
}?>
...and now the page displays:
0101001 | Alfaro | Manny | Composer
0101002 | Wilson | Carla | Announcer
0101002 | Wilson | Carla | Interpreter/Translator
0101002 | Wilson | Carla | Narrator
0101003 | Jones | Nancy | Costume Designer
0101004 | Davis | Fred |
0101005 | Smith | Jordan |
0101006 | Austin | Barbara | Narrator
0101007 | Young | David |
0101008 | Carson | Nadine |
This is almost right... The first record should have "Acting Coach" in the last column, since it is the first record in the output. It seems to have skipped record #1, and displayed record #2. Next, as you can see, memno 0101002 still displays it's duplicates. It should only have displayed the first of those records, ignoring the other 2.
In essence, it seems to be simply displaying every record, except the first one.
I also tried the code exactly as Thomas suggested, and the display became:
0101001|Alfaro|Manny|Acting Coach
0101001|Alfaro|Manny|Acting Coach
0101001|Alfaro|Manny|Acting Coach
0101001|Alfaro|Manny|Acting Coach
0101001|Alfaro|Manny|Acting Coach
0101001|Alfaro|Manny|Acting Coach
0101001|Alfaro|Manny|Acting Coach
0101001|Alfaro|Manny|Acting Coach