You might also need
while($row=mysql_fetch_array($result))
To make Jeremuck clearer (no offence meant)
Having <tr> </tr> inside your loop will make you have a new line every time the loop is run, whereas having <tr> LOOP HERE </tr> will only make one line in a table.
You may also want to automatically increment the number in your array, by using row[$i] instead, with $i++ at the end....