An error occurred when the database executed this statement:
insert into liuyan (title,content,id) values ('$title','$content','$_SESSION[id]');
Error: #1366 - Incorrect integer value: '$_SESSION[id]' for column 'id' at row 1
How can I modify the statement or database to solve this problem?
The ID of your data inventory is auto-incremented. If you pass it in yourself, please make sure it is unique and an int type number. You can try it without passing the ID.