Need to update multiple mysql records with a single form submit

Discussion in 'PHP' started by peterman, May 12, 2006.

  1. #1
    Hello
    I have a wish list like a shoping caty based on a mysql databse where i retrieve records with php
    I need to update the quantity which is in a text fields
    input type = text name = quantity[] value = $quantity
    input type = checkbor value = $id name = id[]

    I need to update quantities based on the primary id represented with id with a single submit

    Can you help me please
    thanks
    webdeveloper_5@yahoo.com
     
    peterman, May 12, 2006 IP
  2. Big 'G'

    Big 'G' Member

    Messages:
    89
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    48
    #2
    The best way is problay to just loop through the ID array and perfrom the update for each product one at a time.
     
    Big 'G', May 12, 2006 IP