,$exploring='" .$this->real_escape_string(implode(',', $_POST['exploring'])). "'
,stay_informed_yes='" . $this->real_escape_string($_POST['stay_informed_yes']) . "'
,stay_informed_no='" . $this->real_escape_string($_POST['stay_informed_no']) . "'
Thanks
<input type="checkbox" name="exploring[]" id="field id" value="value for table" class="form-control">
<div class="form-group">
<label for="Title" class="control-label col-xs-4 col-sm-3">Title</label>
<div class="col-xs-8 col-sm-9">
<input type="checkbox" name="exploring[]" id="id field" value="Value passed to the insert" class="form-control">
</div>
</div>
<div class="form-group">
<label for="Title" class="control-label col-xs-4 col-sm-3">Title</label>
<div class="col-xs-8 col-sm-9">
<input type="checkbox" name="exploring[]" id="id field" value="Value passed to the insert" class="form-control">
</div>
</div>
<div class="form-group">
<label for="Title" class="control-label col-xs-4 col-sm-3">Title</label>
<div class="col-xs-8 col-sm-9">
<input type="checkbox" name="exploring[]" id="id field" value="Value passed to the insert" class="form-control">
</div>
</div>
$sql_3 = "INSERT INTO survey SET
id='" . $this->real_escape_string($_POST['id']) . "'
,company='" . $this->real_escape_string($_POST['company']) . "'
,address1='" . $this->real_escape_string($_POST['address1']) . "'
,address2='" . $this->real_escape_string($_POST['address2']) . "'
,city='" . $this->real_escape_string($_POST['city']) . "'
,state='" . $this->real_escape_string($_POST['state']) . "'
,postal_code='" . $this->real_escape_string($_POST['postal_code']) . "'
,email='" . $this->real_escape_string($_POST['email']) . "'
,field='" . $this->real_escape_string((int)$_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,$exploring='" .$this->real_escape_string(implode(',', $_POST['exploring'])). "'
,field='" . $this->real_escape_string($_POST['field']) . "'
,field='" . $this->real_escape_string($_POST['field']) . "'
" . $this->usual_fields('survey);
$result = $this->query($sql_3);
How did you create exploring in client side ?