MySQL Syntax error. Can't solve it

前端 未结 5 2158
南方客
南方客 2021-01-26 01:22

I wanna insert 0 to some db table\'s fields but can\'t get it work. The piece of code from my signup php script looks like that.

...

if (isset($type))
{         


        
5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-26 01:34

    group is a reserved word. rename your field or put it within backticks (`)

提交回复
热议问题