An error occurred during database statement execution
圆子
圆子 2019-05-01 15:49:14
0
1
930

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?

1556696760776186.jpg

圆子
圆子

reply all(1)
回头就算晚

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template