06.06.2015, 21:34
CodeStyle175's code inserts a new row and it retrieves the ID which is set with AUTO INCREMENT in the table structure. If you haven't set auto increment for "ID" field, then do it (phpMyAdmin or any other) and modify it because it's not something we can "give" you.
PS: At least use always cache as you don't use threaded queries which is something I'd suggest you to do.
PS: At least use always cache as you don't use threaded queries which is something I'd suggest you to do.