M
M
MRcracker2020-05-14 09:34:39
MySQL
MRcracker, 2020-05-14 09:34:39

What is wrong with adding data?

When adding data to the database, the following error appears. Tell me what it is connected with and how it can be corrected?
Error: INSERT INTO info (title, descr_min, description, image) VALUES ('1', '2', '3', '275px-Chengdu-pandas-d04.jpg')
Field 'category' doesn't have a default value

ps in php newbie)))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2020-05-14
@MRcracker

Field 'category' doesn't have a default value
Add a category column value to the query, or make it nullable in the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question