Active3 years, 4 months ago
Join Stack Overflow to learn, share knowledge, and build your career. In this tutorial, we are going to create Update Multiple Rows in PHP/MySQL with Checkbox. This tutorial will teach the user on how to create a simple program in PHP that can update multiple rows using the checkbox as the selector. Bluetooth driver for windows 7 hp. Save Multiple Checkbox values in Database using PHP is the our topic for this tutorial. Many times in our application we need to save the multiple or single checkbox value in the database for further processing like saving use hobbies, saving multiple answers of a question and many more.
i can update mysql database by one checkbox value 0/1 by ajax, but i don't know how to do this with multiple checkbox,
my code: index.php
ajax.php
above code work only for one checkbox, what to do for 8 or 10 checkbox.
where to make change in script for switch1 switch2 switch3. Canon camera pc1732 manual.
nish
nishnish
1 Answer
I have updated the answer:(I will suggest you to use mysqli_(), as mysql_() is depreciated. But I did not change anything regarding that.)
I have changed your index page only, your ajax.php should be the same.
Dipanwita KunduDipanwita Kundu1,65311 gold badge55 silver badges1414 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.