[PHP-WIN] Re: Update multiple records from a text field

2004-04-05 Thread Justin Patrin
Kaizer Boab wrote: This has still got me stumped. I tried the following script to update the table but I'm still experiencing the same result, only one row updates, the rest remain unchanged. while (list($k, $v) = each($qty)) { $newQty = $v; $update = "update cart set qty = $newQty WHERE track

[PHP-WIN] Re: Update multiple records from a text field

2004-04-03 Thread kaizer boab
This has still got me stumped. I tried the following script to update the table but I'm still experiencing the same result, only one row updates, the rest remain unchanged. while (list($k, $v) = each($qty)) { $newQty = $v; $update = "update cart set qty = $newQty WHERE trackerId = $trackerId A

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread Justin Patrin
Kaizer Boab wrote: I have changed it to name="qty[]" . How would I reference it on my processing script? "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Kaizer Boab wrote: Hi Justin, I only have the one qty field in the View Cart page. It is part of a loop to pull o

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread kaizer boab
I have changed it to name="qty[]" . How would I reference it on my processing script? "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kaizer Boab wrote: > > > Hi Justin, > > > > I only have the one qty field in the View Cart page. It is part of a loop to > > pull out

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread kaizer boab
I have changed it to name="qty[]" . How would I reference it on my processing script? "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kaizer Boab wrote: > > > Hi Justin, > > > > I only have the one qty field in the View Cart page. It is part of a loop to > > pull out

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread Justin Patrin
Kaizer Boab wrote: Hi Justin, I only have the one qty field in the View Cart page. It is part of a loop to pull out all the quantities from the cart. It is retrieved via the script below:

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread kaizer boab
Hi Justin, I only have the one qty field in the View Cart page. It is part of a loop to pull out all the quantities from the cart. It is retrieved via the script below: Since the qty

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread Justin Patrin
Kaizer Boab wrote: Hi everybody, I have built a shopping cart using tables. I am able to add items and remove items from the cart. The problem I am having is updating the quantities in the cart. When users view the cart they can see the quantity in a text field. I want to allow users to type in t