The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have a script that I want to be able to convert an entered username (in $username) to the userid (in $userid).
I found an old thread for vb 3.0 here: https://vborg.vbsupport.ru/showthread.php?t=61558 I tried to use the code suggested in there as follows: Code:
$getuser = $vbulletin->db->query(" SELECT userid,username FROM myuser WHERE username = $username "); $user = $DB_site->fetch_array($getuser); echo("The userid for $user[username] is <b>$user[userid]</b>"); Quote:
I really do appreciate any help as I have tried all kinds of combinations for the past 4-hrs or more and I am just stumped... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|