I'm struggling with how to allow a user access to their table and only their table for which they can view, update, edit, delete, etc.. data from their table.
Database name is Game
Fields in the table - ID, Username, Password, Strength, Dexterity, HP, Gold
I'm thinking that i have to set up a session and store their username in a variable like $username and then if we wanted to display the users gold, it would be something like...
$gold = mysql_query("SELECT Gold FROM Game Where Username=$username")
echo $gold
Am I anywhere close?? Any help with the sessions part of this? thanks!!