Multiple selection of Mysql select

Hi everyone.
I have this table people:(id,name,group)
and of course a select like this…
select name from people where group=‘var’

I need to show the selection, and mark some of them with a checkbox, later do some updates only on the names selected by the checkbox.

I’m begginig to learn PHP, any help will be appreciated.
Thanks in advance

Use arrays for the form field name attributes, with the row id as the array index. All the form field(s) and corresponding checkbox will have the same id/index. When you loop to process the arrays of submitted data, you can use the row id/index from the checked checkboxes to reference the corresponding form field value(s).

1 Like
Sponsor our Newsletter | Privacy Policy | Terms of Service