Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PHP Problem regarding updating through text boxes

0 views
Skip to first unread message

Esteban Fernandez

unread,
Jun 20, 2003, 4:23:43 PM6/20/03
to php-g...@lists.php.net
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" <efern...@tecsol.cl> escribió en el mensaje
news:2003062020230...@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" <ma...@hedges.org> escribió en el mensaje
> news:2003062020191...@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
> >
> >
> >
>
>


Esteban Fernandez

unread,
Jun 20, 2003, 4:18:58 PM6/20/03
to php-g...@lists.php.net

Matt Hedges

unread,
Jun 20, 2003, 4:19:10 PM6/20/03
to php-g...@lists.php.net

Electroteque

unread,
Jun 20, 2003, 6:58:38 PM6/20/03
to Esteban Fernandez, php-g...@lists.php.net
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];

}

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

0 new messages