RE: [PHP] Re: PHP Problem regarding updating through text boxes
| From: | electroteque | Date: | Fri, 20 Jun 2003 22:58:38 +0000 |
| Subject: | RE: [PHP] Re: PHP Problem regarding updating through text boxes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152355@lists.php.net to get a copy of this message | ||
hmm name the text fields the field of the database then put a [] in front of
them to make them an array then
then try maybe
foreach ($_POST['id'] as $key=>$value) {
//sql statement
update table set us=$_POST['us'][$key] where id=$_POST['id'][$key];
}
-----Original Message-----
From: Esteban Fernandez [mailto:efernandez@tecsol.cl]
Sent: Saturday, June 21, 2003 6:24 AM
To: php-general@lists.php.net
Subject: [PHP] Re: PHP Problem regarding updating through text boxes
Hum,, i don't see the database conecction :P. It's necesary modified the
fileds on the fly ?, one by one it's more easy to do...
"Esteban Fernandez" <efernandez@tecsol.cl> escribió en el mensaje
news:20030620202304.79643.qmail@pb1.pair.com...
> Put the code in a Form tag, modified thevalues, and put a submit button in
> the Form, so, in the php page you get it the values by name, you can
> modified with 'update' mysql sentence.
>
>
> "Matt Hedges" <matt@hedges.org> escribió en el mensaje
> news:20030620201914.75877.qmail@pb1.pair.com...
> > Please take a look at http://hedges.org/code/wine.php -
> > You'll see what
I
> > can't figure out how to do.
> >
> >
> > thanks,
> > Matt
> >
> >
> >
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php