cln Posted October 17, 2012 Share Posted October 17, 2012 I'm very new to php, so please be gentle I have users who log in, and now I want to show all of the users on a particular page. Each user shown would then be clicked on and up would pop all of their content that they have uploaded to a table in my database. The table in question is named 'Story', and the two fields I want echoed are 'title' and 'story'. Any help would be much appreciated. Hope my explanation makes sense. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/269568-show-uploaded-content-from-users/ Share on other sites More sharing options...
Beeeeney Posted October 17, 2012 Share Posted October 17, 2012 Just create a page which pulls all of your members from a table in the database, using a while loop. Then just have each member's name a dynamically generated link to a content page where you can see everything they've uploaded with another MySQL query from the database. It should be very easy to do, pulling information from a database is basic stuff. Use Google. Quote Link to comment https://forums.phpfreaks.com/topic/269568-show-uploaded-content-from-users/#findComment-1385730 Share on other sites More sharing options...
White_Lily Posted October 17, 2012 Share Posted October 17, 2012 Also, make an id column for each table you mentioned so that you can match the story with the user. Quote Link to comment https://forums.phpfreaks.com/topic/269568-show-uploaded-content-from-users/#findComment-1385731 Share on other sites More sharing options...
JohnTipperton Posted October 18, 2012 Share Posted October 18, 2012 you should relate the userid in the table story to identify if the created the content. Quote Link to comment https://forums.phpfreaks.com/topic/269568-show-uploaded-content-from-users/#findComment-1386048 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.