Hello. Can someone help me? I want to delete, add and edit from the grid at the same time some rows, i.e. what are marked with the help of checkboxes. I assume that it is necessary to use multiselect.
But how I can receive parameters of the selected rows, after submiting in the edit/delete form when a post request is sent for the server? Is necessary something like this:
|
1 2 3 4 5 6 7 8 9 10 11 |
<div class="sfcode">$massiv = $_POST["json"];<br /> $decmassiv = json_decode($massiv, true);<br /> $count = count($decmassiv);<br /> <br /> for ($x=0; $x < $count; $x++){<br /> $new = $decmassiv ;<br /> $id = $new ['id'];<br /> $name = $new ['name'];<br /> $email = $new['email'];<br /> }<br /> mysql_query("UPDATE user SET name = ".$name.", email = ".$email." WHERE id = ".$id);</div> |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top