The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
Adding those TABLE_PREFIX's in front of the table.fieldname is not wrong, but like Buffy suggested using ...user AS user take away a lot of those prefixes. Also $variable is not cleaned and could lead to SQL injections.
PS You want to select from userfield and try to get the corresponding username, so userfield should be your primary table with a left join on use. PHP Code:
|
#12
|
||||
|
||||
![]()
wow, thx. this is sorta confusing but I'll see what I can do with it.
I'm basically trying to make a member locator script that generates an array of numbers then returns the usernames of people that have those numbers. The custom profile field is for a zip code.. which I would pass to a DB table that converts it to lattitude/longitude coordinates. then do a distance calculation based on the coordinates. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|