If you want it all stored in one record, first remove the for()
loop. Then you have a couple options take your pick:
$emode = mysql_real_escape_string(json_encode($mode));
$emode = mysql_real_escape_string(serialize($mode));
$emode = mysql_real_escape_string(implode(',',$mode));
Then you just have decode on the way out.
3
solved how to add checkbox intems in to data base in one row [closed]