$row = mysql_fetch_array($query);
$result = "$row";
while ($result);
get rid or this, then do:
while ($row = mysql_fetch_array($query){
// all that other stuff
}
mysql_fetch_array returns a single row of the results, and if all you wanted was the first row, you could just run it once. Since you want to run the echo's for each row, you need to do a while statement as above, which will continue for each row (until mysql_fetch_array() returns FALSE because it ran out of rows.