I am trying to create a page that displays a preview of all the data that each individual user has put into the database. Each user must only be able to see their own data.
I have been using $SESSION's to post which logged in user is inputting what, and have tried to get my brain to think about the reverse action.
I first wondered whether I could do
SELECT *
FROM input
WHERE input
.bodyshop_name=$_SESSION ['MM_Username']
But that did not work.
As you can probably tell, I am new to PHP/MySQL, so any help would be appreciated.
Thanks