How to check the user id on the page? id is in the database to which I made the connection.
Update
I need him to read the user id when moving to another page and allow him to perform any manipulations on the page. It goes to another page, and the user id can not see it so that it can do something there.
if (isset($_GET['id'])) { $id =$_GET['id']; } else { exit("Вы зашил на страницу без параметра!"); } if (!preg_match("|^[\d]+$|", $id)) { exit("<p>Неверный формат запроса! Проверьте URL</p>"); } it gives me that I entered the page without a parameter, that is, I did not specify my id , but I need this to be done automatically. Sorry, I'm just just learning, and I still don't understand everything.
SELECT id FROM table_name WHERE id = YOUR_IDTry to formulate your questions more precisely - BOPOH