Answer the question
In order to leave comments, you need to log in
How to display id?
Hello! there is a php insert handler adding information to the database, in MYSQL there is a primary key in id and so in this handler I perform copying, the approximate path is: site5/site10/$id
but $id is what appears after saving, the question is: how can I get it ? If you have questions, ask.
Answer the question
In order to leave comments, you need to log in
Or php.net/manual/ru/function.mysql-insert-id.php
Or if you are using PDO, php.net/manual/ru/pdo.lastinsertid.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question