hi all
i want to insert all selected checkboxes values with a comma separator in
database in one single column.
i m able to echo all the checkboxes selected through the below code
ouput is
i want to insert all selected checkboxes values with a comma separator in
database in one single column.
so what should i write in my query
vineet
i want to insert all selected checkboxes values with a comma separator in
database in one single column.
i m able to echo all the checkboxes selected through the below code
Code:
<input type="checkbox" value="Battery" name="checkbox[]" id="checkbox[]" />
Code:
for ($i=0; $i<count($_REQUEST['checkbox']);$i++) {
echo "chosen<br />$i. ".$_REQUEST['checkbox'][$i];
}
Code:
0. battery 1. rocket 2. pineapple
database in one single column.
so what should i write in my query
Code:
$query = "insert into checkbox table (checkboxes) values()"
Comment