<div class="form-group"> <label for="qualification" class="col-sm-2 col-sm-offset-2 control-label">Qualification:</label> <div class="col-sm-5"> <?php $check=explode(',',$fetch['Qualification']); ?> <div class="checkbox-inline"><label><input type="checkbox" name="chk[]" value="BE" <?php if(in_array('BE',$check)) { echo "checked";} ?>>BE</label></div> <div class="checkbox-inline"><label><input type="checkbox" name="chk[]" value="ME" <?php if(in_array('ME',$check)) {echo "checked"; }?>>ME</label></div> <div class="checkbox-inline"><label><input type="checkbox" name="chk[]" value="MCA" <?php if(in_array('MCA',$check)) {echo "checked";} ?>>MCA</label></div> <div class="checkbox-inline"><label><input type="checkbox" name="chk[]" value="MTECH" <?php if(in_array('MTECH',$check)) {echo "checked";} ?>>MTECH</label></div> <div class="checkbox-inline"><label><input type="checkbox" name="chk[]" value="PHD" <?php if(in_array('PHD',$check)) {echo "checked";} ?>>PHD</label></div> </div> </div> <!---------------In Query Part------------------------------->
$chk1=implode(',',$_POST['chk']);
$update=mysqli_query($connect,"update bws set Name='".$_POST['sname']."', Qualification='".$chk1."'
where id='".$_GET['id']."' ") or die(mysqli_error($connect));
ConversionConversion EmoticonEmoticon