There is a table table_products and it has a login column. How to make a request for the user to see what ads he submitted?
This code displays all products of all users. This code is not correct, but I think it should just be improved, but I don’t know how
session_start(); if ($_SESSION['auth'] == 'yes_auth') { include("include/config.php"); include("functions/functions.php"); $all_products = mysql_query("SELECT * FROM table_products WHERE login='$login'",$connect); $result_count = mysql_num_rows($all_products); In general, here, there are 10 ads 9 for admin 1 for Eugene, if I go under admin, then all ads are shown both by admin and Eugene, and if under Eugen, then both admina and Eugen are shown. And I need each login to show their ads. That seems well described the problem

loginis taken from in thetable_productstable. Then figure out how you php-script should understand what exactly the user came to him. Without these two conditions, the answer is impossible to give in principle - rjhdby