Answer the question
In order to leave comments, you need to log in
How to make it so that with each request id was added?
The bottom line is that there is a main.php and a button on the site, by entering data and clicking on the button, he accesses action.php on a post request. action.php sends it all to the database. I made it take the last id from the database, add one to it and send it all back, but it sends everything only once by adding it until I refresh the page, if I update it, it adds it again.
$idgamesql = "SELECT id FROM kot_games ORDER BY id DESC LIMIT 1";
$idgame += mysql_query($idgamesql);
This is the action.php code. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question