Reply to Re: update table for several records

Your name:

Reply:


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...

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация