Possible Duplicate:
MySQL returns only one row
I wonder how to select all rows with a single value. EG all rows where the column username is a certain username. Here is the code I have at this moment:
$result = mysql_query("select * from `order` WHERE username='$user'");
$row = mysql_fetch_array($result);
echo $row['username'];
echo $row['amount'];
This echos only the values in the first row. Any help would be great.
'` – Michael Berkowski Oct 21 '12 at 21:52