![]() |
How to get username from userid
I'm creating a php page for the forum that will show everybody from a specific string they input under the Additional Information / Details section. It's 'field2' located in the 'userfield' section of the forum database. Basically I am able to get the field2 string and userid, but I'm wondering how I can get the username from the userid?
Code:
if ($row['field2']=="United States") { |
Assuming you are selecting user.username in your query $row['username']
Am I missing something? |
selecting by userfield, there is no username row
Code:
mysql_select_db("forum") or die(mysql_error()); |
All times are GMT. The time now is 03:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|