I created a registration form in PHP, and as soon as the user registers, a message appears stating that the registration was successful, what I want is to be able to put together with this message the ID of this user who has just been registered.
I tried using the code ("SELECT * FROM user ORDER BY id DESC";)
however this code it displays the last one I register and not the one that just registered.
I would like to know how I can display the user ID that has just been registered.