Look at your code...
you reset the array $row, and in the next line you
make $row equal to something new.
That won't work.
It will not work anyway, because you are fetching data from a mysql result pointer.
If you are going to reset anything, it would be $sql_result.
Have a look at the php manual about mysql_data_seek()