The session stores the value of the user profile type. You need to substitute this value in all SQL queries as a WHERE clause.
For example: WHERE userType = $_SESSION['type']
The problem is that there are about a hundred such requests in the project, each has its own field name to which this condition should be applied.
What can be simplified in this case?
Update
In more detail, you can say this:
Information from different countries is added to the site. Added entries by a user from Austria will automatically be tagged with a country tag in the database (Austria). Suppose a user from Russia changes the country where the site is viewed, the ID of the selected country (Austria) is entered into the session. Now the Russian, looking through the site, will see only information from Australia. Those. for all SQL queries, the value is Austria.