bugz-2849 Posted October 19, 2009 Share Posted October 19, 2009 I currently have a database and script working to collect and store data. It is for a game I play. When other members use the script, it saves data and assigns their Member ID as the person who submitted the data. I am currently trying to find out how I can make it so members can only view data they submitted. I am not sure what sort of code I need to write. I have attached the file that allows members to login in and view the data. Can anyone help me write the part that will ONLY allow them to view the data they submitted please? Thanks [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/178222-help-with-php-script/ Share on other sites More sharing options...
fenway Posted October 19, 2009 Share Posted October 19, 2009 We don't encourage posting entire scripts.... if you store the submitter ID with the data, then it should be trivial to filter it on the way out with a WHERE clause. Not sure if you're asking for mysql or php help. Quote Link to comment https://forums.phpfreaks.com/topic/178222-help-with-php-script/#findComment-939671 Share on other sites More sharing options...
bugz-2849 Posted October 19, 2009 Author Share Posted October 19, 2009 It's not an entire script. Only a members page. It's PHP help I'm after. I want to add in some code to only allow a user to see what he/she submitted. Quote Link to comment https://forums.phpfreaks.com/topic/178222-help-with-php-script/#findComment-939684 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.