how to get multiple checkbox value from database in php? – Use the insert statement to insert the value into MySQL the database. To get multiple checkbox value from MySQL database use the select Query / statement. As all the available checkbox value is insert as a single comma separated value.
how to get multiple checkbox value from database in php?
get and display multiple checkbox values from database using php – How to retrieve one or multiple checkbox values from database using php and MySQL?
Table structure
[php]
CREATE TABLE `websites` (
`id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`website` varchar(80) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[/php]
Create a new config.php file.
[php]
index.php
[php]
[/php]
Insert Multiple Checkbox Value in Database Using PHP
index.php
[php]
alert(“Inserted Successfully”)‘;
}
else
{
echo’‘;
}
}
?>
[/php]