Hello all,
My question is how would you query (insert into table) a variables that can vary from few to many in quantity depending on the user input. The code looks like this.
$chkbox = $_POST['chk'];
$imp=$_POST['imp'];
$step= $_POST['step'];
$start=$_POST['start'];
$finish = $_POST['finish'];
$duration = $_POST['dur'];
$status= $_POST['status'];
foreach($imp as $a => $b){
echo " imp: $imp[$a] - step: $step[$a] - start: $start[$a] - finish: $finish[$a] - duration: $duration[$a] - status: $status[$a] <br />";
}
There could be one row or many rows.
Any help is greatly appreciated.