can some body figuer out how to fix this code so it will update the checkbox values on one submit , right now it is updating all the values of the checkboxes in the career field to the one submitted the last and i have only one field career in the sql table and all the checked values should go into that field if they are checked. so there are two queries insert and update can any tell me a better way
if($action == "insert") {
$fn="first_name";
$social="ssn";
$maj="major";
$stan="standing";
$intern="internship";
$query="insert into user (name,ssn,major,standing,career,internship) ";
$query.= "VALUES ('${$fn}', '${$social}', '${$maj}', '${$stan}' , '${$career}', '${$intern}')";
if (isset($Career_Array)) {
$career = implode($Career_Array, ",");
$result = mysql_query ("update user SET career ='$career'");
}
echo $query;
mysql_query($query) or die ("could not insert ");
}//endif action insert
the check boxes are reference by Career_Array
<input type=checkbox value="career services offered in engineering" name="Career_Array[]"></td><td> Career Services offered in the college of Engineering & Technology</td></tr>
<input type=checkbox value="Unl Career service" name="Career_Array[]"></td><td>  UNL Career Services</td></tr>
<input type=checkbox value="Husker hire link" name="Career_Array[]"></td><td> Husker Hire Link</td></tr>
<input type=checkbox value="Career Fair" name="Career_Array[]"></td><td> Career Fair</td></tr>
will appreciate your help