I have a MySQL database with its data organized like this...

| fname | lname | email |
| Timmy | Tikes | tommytikes@whatever.com |
| Johny | Leaks | johnyleaks@whatever.com |

... and what I need is a script that I can implement into my site
where when a logged in user goes to ../myacc.php the script will display
their user details that are in the database, and displays their row
according to a session that has their username which was set when they logged in.

Extra Details:
  • The session is set as $_SESSION['users']
  • The table name is users