I am not new to coding, but with the upgrades from mysql to mysqli or PDO I am very confused. I tried to convert to the mysqli but it didn't work at all, so I chose PDO which at least gets the information into the database. The issue I am now having is setting up SESSIONS so that only certain pages are visible to certain people.
Assuming that I know how to set up a db connect, and that the code for such is correct,
and assuming that the information is correctly inserted into the database, the code I am trying to call is defined as $userDetails but there is something definitely wrong with the way I am calling it.