|
Posted by Michael Vilain on 12/27/05 19:04
In article <1135698304.628992.276450@g49g2000cwa.googlegroups.com>,
"zek2005" <esapoznik@gmail.com> wrote:
> Hi!!!!
>
> I have a list of records as a result of a query. They are displayed
> with a while sentence...
>
> while($row = mysql_fetch_array($res))
>
> at the end of each record, I inserted a checkbox because I need to
> update all the records that the user checks in the checkbox. So, the
> process is:
>
> 1) The PHP displays all the records with the "while"
> 2) The user checks one or more checkbox
> 3) Then Update the table where the record is checked
>
> Each checkbox has an unique name. I understand how to update the table
> with one record checked, but as the numbers of records to change can
> variable, how do I do it???
>
> Any help will be apprecciate!!
>
> Best regards,
>
> Ezequiel
Use a loop and update each record in the table based on it's unique ID.
Each record has a unique, primary ID, right? Use that.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
Navigation:
[Reply to this message]
|