Re: General Question!
| From: | Maurice Kevenaar | Date: | Mon, 05 Apr 2004 08:58:35 +0000 |
| Subject: | Re: General Question! | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33750@lists.php.net to get a copy of this message | ||
> <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
that);
}
I hope this works
Maurice