I'm having a problem, I'm not really sure if it's in PHP or in the database.
In a posting system using PHP, as soon as you submit a notice, ID
(the primary key, which would be used like this: index.php?ID=0
) is not changing, ie it always starts in 0
and I wanted it to start from 1
, and when I go to create a post it ends up giving the following error:
Duplicate entry '0' for key 'PRIMARY' "
and there I always have to change in MySQL to another ID
.
Code: link
Would you like to put sequentially?