Sorm for updating multipla database records www netdating com
On clickinh Previously, we have seen about how to handle edit for each record.
Checkbox added for 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 PHP page.
For that, we need to make two main changes with the edit_user.php, we have seen in PHP CRUD. So, on submitting this multiple user information, array of user information for each user, will be passed to PHP code.
By iterating over this multi dimensional array, each user record will be updated by setting current iteration values to My SQL UPDATE query.
We can get selected checkbox values via j Query AJAX post or by accessing form from PHP after page refresh.