<?php
$checkbox1 = $_POST['batch'];
$checkbox2 = $_POST['particular_name'];
if(@isset($_REQUEST["sub"]))
{
for ($i=0; $i<sizeof($checkbox1);$i++) {
for ($j=0; $j<sizeof($checkbox2);$j++) {
$query = "INSERT INTO table(`batch`,`particular_name`) values('".$checkboxi[$i]."','".$checkbox2[$j]."')";
mysql_query($query) or die(mysql_error());
}
?>
its not workin pls help me
Sunil Singh
27-Aug-2015try this code