Check box function similar to phpmyadmin, with modification function

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.