Padgoi Posted September 1, 2008 Share Posted September 1, 2008 I have a forum. Every user has a status, which is located in a field called field_10 in a table called ibf_pfields_content. In that same table is a field called id which is the id # for each user. What sql query could I use to call up each users status so that when they log on, they see their own status? I don't want it to show all the statuses, just that user's individual status. Thanks, I appreciate any help! Quote Link to comment Share on other sites More sharing options...
beedie Posted September 1, 2008 Share Posted September 1, 2008 "SELECT field_10 FROM ilbf_pfields_content WHERE id = {$_POST['user_id']}" assuming you are posting user_id's at login Ten set a session to view it on the next pages Quote Link to comment 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.