Checkbox added to each user’s row will contain their id, accordingly, as its value.
And, it will look like, These values will be passed as an array of user ids to the PHP page.
So, while printing user table entries dynamically to the list view, the loop should contain the following items.
The HTML tags will recursively create with dynamic values for each iteration of the loop.
All the steps listed below are suitable for updating multiple rows.
But, step 2, 3 is not required for deleting multiple rows.
If you are not using PDO statements yet to prevent SQL injection attacks then you should use more protection then just mysql_real_escape_string().