(error #1064) You have an error in your SQL syntax
#4

I mean in your query you put "+1" after "FROM tablename", that's not right. MAX(`id`) is correct for getting highest id, and if you want + 1 just put it right after MAX, not after FROM part.
Reply


Messages In This Thread
(error #1064) You have an error in your SQL syntax - by Lirbo - 04.01.2018, 17:03
Re: (error #1064) You have an error in your SQL syntax - by Misiur - 04.01.2018, 17:19
Re: (error #1064) You have an error in your SQL syntax - by Lirbo - 04.01.2018, 17:27
Re: (error #1064) You have an error in your SQL syntax - by Misiur - 04.01.2018, 17:41
Re: (error #1064) You have an error in your SQL syntax - by Lirbo - 04.01.2018, 17:46
Re: (error #1064) You have an error in your SQL syntax - by Misiur - 04.01.2018, 18:33
Re: (error #1064) You have an error in your SQL syntax - by Lirbo - 04.01.2018, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)