I'm trying to create a php
website that users log into and they can submit data to a MySQL
database
. How do I make it so the users can only see data they've submitted and not everyone else's data?
Should I use:
Echo $_sessions[user][piece of data]
Am I on the right track or is there an easier way to go about this? Is there a template or tutorial that shows how this is accomplished? It seems all the demos on the web show you how to log in then stop after that point. I've been researching for a while and have not come across a way to implement this.