//time Am
$a=$_POST[am];
$a1=$_POST[am_min];
$tmeAm=$a.':'.$a1;
//time AM
//time Pm
$p=$_POST['pm'];
$p5=$_POST['pm_mins'];
$s=':';
$times=$p.':'.$p5;
$ttime=$tmeAm.'-'.$times;
//days
$days=$_POST['days'];
for($i=0;$i<count($days);$i++)
$dd=$days[$i];
mysql_query("insert into tc_handle set sid='$_POST[ass]',
sub_id='$_POST[lvl]',
secid='$_POST[secs]',
section='$g_sec[name]',
year='$g_sub[year]',
code='$g_sub[code]',
date='$cur',
acad_id='$now[acad_id]',
time='$ttime',room='$_POST[rm]',
** days='$dd'-------------------------- having problem here, it only saves the last checkbox in my form, why is it???**
")or die (mysql_error());
$mess="Assigned Sucessfully!";
Code blocks are created by indenting at least 4 spaces
... and can span multiple lines
here is my form in that checkbox
<input type="checkbox" name="days[]" id="days[]" value="M"/>
M
<input type="checkbox" name="days[]" id="days[]" value="T"/>
T
<input type="checkbox" name="days[]" id="days[]" value="W"/>
W
<input type="checkbox" name="days[]" id="days[]" value="Thu"/>
Th
<input type="checkbox" name="days[]" id="days[]" value="Fri"/>
need help urgent! thanks!