When i submit info into my form, it gets displayed multiple times on the page.

PHP Code:
while($row mysql_fetch_array($data)) {
 
 Print 
"<tr>"
 Print 
"<th>Hit:</th> <td>".$row['hit'] . "</td> "
 Print 
"<th>Amount:</th> <td>".$row['amount'] . " </td></tr>"
 Print 
"<th>Category:</th> <td>".$row['category'] . "</td> ";
 } 
 Print 
"</table>"
I am very new with all of this and just can't figure out the problem. it didnt start until i added that part in the code. When i refresh, more data gets posted also. I'm just not sure what i'm doing wrong.