Date: 10/13/00
- Next message: Michael T. Babcock: "Re: [PHP-DB] changing sort order of fields in MySQL"
- Previous message: Manuel: "Re: [PHP-DB] Weird Wildcard Search"
- Next in thread: Lutz Brueckner: "Re: [PHP-DB] 2 dim array"
- Reply: Lutz Brueckner: "Re: [PHP-DB] 2 dim array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi:
I am passing a bunch of form values from
HTTP_POST_VARS to $frm. There are some form values
which are passed into $frm as an array already (i.e.
glenum[])...So I am assuming that the array is passed
into $frm and what I am getting is:
$frm[name]=Jane Public
$frm[address]=123 Main St.
$frm[glenum][1]=Some value
$frm[glenum][2]=some other value
...etc
Is this correct?
The problem I am having is in traversing the
$frm[glenum][] array and updating the db with those
values...
I tried this with no luck:
$glearray = $frm["glenum"];
while (list ($key1) = each ($glearray)) {
while (list ($key2, $val) = each
($glearray["$key1"])) {
$qid = db_query("
INSERT INTO lesson_gle (l_id, glenum)
VALUES ('$id', '$val')
");
}
}
Any ideas? Thanks!
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Michael T. Babcock: "Re: [PHP-DB] changing sort order of fields in MySQL"
- Previous message: Manuel: "Re: [PHP-DB] Weird Wildcard Search"
- Next in thread: Lutz Brueckner: "Re: [PHP-DB] 2 dim array"
- Reply: Lutz Brueckner: "Re: [PHP-DB] 2 dim array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

