The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Thanks for helping in advance.
PHP Code:
|
#2
|
||||
|
||||
![]()
Also, the other problem is that both tables have the same variable name 'userid' which gives me an 'ambiguous variable' mysql error.
|
#3
|
||||
|
||||
![]()
try that one (not sure i'm not so good in mysql^^)
PHP Code:
|
#4
|
||||
|
||||
![]()
Thanks... how would you display the result?
$top[user.userid] ? That gives a parse error $top[user.username]?? |
#5
|
||||
|
||||
![]() PHP Code:
(Just so you know, the original code had LIMIT 5 but I removed that since we are using query_first() anyway. If you want to get the top 5, you'll need some different code. But the code above does exactly the same thing your original code did.) |
#6
|
||||
|
||||
![]()
Firefly, you are a king.
That worked like a charm. I was able to do a Top 5 using an array. Thanks. Your tip is going to help me in more ways than one. |
#7
|
||||
|
||||
![]()
Glad I could help.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|