CoreDestroyer Posted October 13, 2012 Share Posted October 13, 2012 I'm making a "members" page and I was wondering if it were possible to grab the username and profile picture (which, atm, is just a default one that no one could customize,) and make it display on a page. Then, when you click it, find their ID and have it go to their profile. Is it possible? Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/ Share on other sites More sharing options...
Jessica Posted October 13, 2012 Share Posted October 13, 2012 No, it's not. It's not possible to do something that practically every website with any kind of social aspect does. Nope. Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/#findComment-1384924 Share on other sites More sharing options...
Pikachu2000 Posted October 13, 2012 Share Posted October 13, 2012 (edited) Of course it's possible. Never mind. Uh, what ^^^ she said. Edited October 13, 2012 by Pikachu2000 Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/#findComment-1384925 Share on other sites More sharing options...
CoreDestroyer Posted October 13, 2012 Author Share Posted October 13, 2012 Ok, well, I know there is. Sheesh. Can someone help me with it then? Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/#findComment-1384929 Share on other sites More sharing options...
Jessica Posted October 13, 2012 Share Posted October 13, 2012 No, no we can't. Are you seeing a theme yet with your questions? Cause I sure am. Read my signature before the next one please. Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/#findComment-1384931 Share on other sites More sharing options...
Eritrea Posted October 13, 2012 Share Posted October 13, 2012 Yea, it is possible. But, how in the hell can we help you, if we do not even know what is in the database, that you want to output, and what is your file structure? Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/#findComment-1384957 Share on other sites More sharing options...
PFMaBiSmAd Posted October 13, 2012 Share Posted October 13, 2012 Can someone help me with it then? You haven't' actually asked a php coding help question (the forum where you posted this) and the question you did ask, if something is possible, was addressed. Exactly on which part of doing this, you listed three main things (grab the username and profile picture; make it display on a page; when you click it, have it go to their profile), do you need help with an error, a problem, or a coding question you had when you tried to do them? Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/#findComment-1384963 Share on other sites More sharing options...
gizmola Posted October 16, 2012 Share Posted October 16, 2012 No, it's not. It's not possible to do something that practically every website with any kind of social aspect does. Nope. Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/#findComment-1385416 Share on other sites More sharing options...
Jessica Posted October 16, 2012 Share Posted October 16, 2012 What, sarcasm is against the rules now? Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/#findComment-1385417 Share on other sites More sharing options...
White_Lily Posted October 16, 2012 Share Posted October 16, 2012 (edited) It is possible, you would use a select query, you would fetch the data from the specified table with mysql_fetch_assoc() in a while loop, within that while loop you want to echo out all the information either in a table or an awkward structure of divs. If you want an example, say so. Edited October 16, 2012 by White_Lily Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/#findComment-1385461 Share on other sites More sharing options...
JohnTipperton Posted October 19, 2012 Share Posted October 19, 2012 (edited) yes it is possible you will just query the selected primary key it is very common in all networking sites. just like using GET method sample www.somesites.com?profile.php?id=1 Edited October 19, 2012 by JohnTipperton Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/#findComment-1386235 Share on other sites More sharing options...
White_Lily Posted October 19, 2012 Share Posted October 19, 2012 You don't always have to use the primary key column (but you can if you want to). Quote Link to comment https://forums.phpfreaks.com/topic/269413-getting-users-from-a-table-and-displaying-them/#findComment-1386246 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.