General Question!
| From: | JeRRy | Date: | Mon, 05 Apr 2004 04:37:13 +0000 |
| Subject: | General Question! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33747@lists.php.net to get a copy of this message | ||
If I have a form that has in a text field something
like this below how would my query look to update all
in the form to the fb?
<input type=text name=username> <input type=text
name=total>
So there is data inputed in username field and total.
Now let's say there is 5 of these text fields for the
one form. All named the same (e.g. username and
total) but in each area the user puts something
different.
so if I have
UPDATE tbl score='$total' WHERE username='$username';
(quick work only so you know what I mean)
But that will ONLY update one part of the form rather
than all text areas to the db. How can I get each one
to input? Keeping in mind each line of text area has
the same form name as the previous. Is there a way
around this so everything is updated correctly instead
of bits here and there?
Cheers!
Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com