The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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") {
echo "<b>" . $row['userid'] . "</b> - <u>" . $row['field2'] . "</u>";
}
|
|
#2
|
|||
|
|||
|
Assuming you are selecting user.username in your query $row['username']
Am I missing something? |
|
#3
|
|||
|
|||
|
selecting by userfield, there is no username row
Code:
mysql_select_db("forum") or die(mysql_error());
$b="SELECT * FROM userfield ORDER BY userid ASC";
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|