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! Link to comment https://forums.phpfreaks.com/topic/122289-need-quick-help-with-sql-query/ 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 Link to comment https://forums.phpfreaks.com/topic/122289-need-quick-help-with-sql-query/#findComment-631460 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.