> <input type=text name=username> <input type=text
> name=total>

You have to chainge this into:
<input type=text name=username[]> <input type=text name=total[]>

> UPDATE tbl score='$total' WHERE username='$username';

Then you have to chainge the query to something like this:

for ($a = 0; $a <= count($username) -1; $a++){
  $query = UPDATE tbl score='$total[$a]' WHERE username='$username[$a];
  mysql_query($query) or die (Error message of your own, or something like

I hope this works


PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to