Sorm for updating multipla database records www netdating com

Posted by / 21-Aug-2015 17:22

Sorm for updating multipla database records

Because, we need not show any user interface and it requires only the array of selected row ids.For multi row delete also we are submitting selected rows by using Javascript.This article deals with selecting multiple rows for applying update/delete operations.For selecting multiple rows, we are going to use checkbox input for submitting selected rows reference.Instead, we can show a Javascript popup to ask for confirmation of delete.First, let us start coding for updating multiple rows.

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.

sorm for updating multipla database records-78sorm for updating multipla database records-46sorm for updating multipla database records-84

We can get selected checkbox values via j Query AJAX post or by accessing form from PHP after page refresh.