Find the check box function similar to phpmyadmin, and use the modify function to list the corresponding values from the database. add the check box before the function. you can select one or more options. Select the Modify button to batch modify selected columns, similar to the check box function of phpmyadmin. May you give me some advice on how to implement this function? ------ Solution -------------------- Add the & lt; input... check box function similar to phpmyadmin in front of the ajax read data loop output data, with the modification function
List the corresponding values from the database, and add the check box in front. you can select one or more options. Select the Modify button to batch modify selected columns, similar to the check box function of phpmyadmin. May you give me some advice on how to implement this function?
------ Solution --------------------
Add one before ajax read data loop output data ------ Solution --------------------
When the value is set
While ($ row = mysql_fetch_array ($ res )){
Echo" ";
Echo $ row ['myclo1']. "". $ row ['myclo2'];
} // The data is loaded. the following operations are performed:
Just use JS, but it is more convenient if you use jquery.
$ ("# Alter"). click (function (){
$ ("Input [type = checkbox]"). each (function (){
If ($ (this). attr ("checked "))
{
$ (This). removeAttr ("checked"); // do something here
}
})
})
------ Solution --------------------
PHP code
Array ([0] => 1) [name1] => Lucy [name2] => woman [save] => save)}?>
Checkbox-edit