In checkbox when I selected it then value(1) is going to database but when I am not selected Zero(0) is not going to DB and error is like A
Database Error Occurred
Error Number: 1048 Column 'paid' cannot be null
INSERT INTO
topic
(title
,description
,content
,attachment
,courseId
,sectionId
,type
,paid
) VALUES ('Mysql Unit 1', 'Mysql unit description', 'video1.mp4', 'upload.mp4', '292', '83', 'unit', NULL)Filename: C:/xampp/htdocs/ci3/system/database/DB_driver.php
Line Number: 691
addunit.php
<td>
<div class="form-item form-checkbox checkbox-style">
<input type="checkbox" id="make" name="free" value="1">
<label for="make">
<i class="icon-checkbox icon md-check-1"></i>
Make this Unit as Free
</label>
</div>
</td>