Reputation: 1
SQLSTATE[23000]: Integrity constraint violation: 1048 Column >'category_description' cannot be null (SQL: insert into `tbl_category` (`category_id`, `category_name`, `category_description`, `publication_status`) >values (, sdfsf, , 1))
Upvotes: 0
Views: 54
Reputation: 773
Your insert query is showing that you are not passing required values i.e.
insert into `tbl_category` (`category_id`, `category_name`, `category_description`, `publication_status`) >values (, sdfsf, , 1)
Assign a value to category_description
or change the default value to 'NULL' in DB for that column.
Upvotes: 0
Reputation: 94
Your category_description
cannot be null, update that column to "Allow NULL"
or assign a value for that column.
Upvotes: 1