The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Query 'how is on-line'?
What is the query to know hos is on-line?
|
#2
|
|||
|
|||
I have do
PHP Code:
"Antonio, Antonio, Antonio, BILL, FREDD, FREDD, ecc..." I want see only ther first record, If there is the same don't do a print |
#3
|
|||
|
|||
Code:
$query='SELECT DISTINCT session.userid,user.username FROM session LEFT JOIN user ON user.userid=session.userid WHERE user.invisible=0 AND session.userid>0 AND ('.time().'-session.lastactivity-1500)<0 ORDER BY user.username'; Access table has nothing to do with who is online. When you have more than one table in your query use JOIN to join them or you might get too many results back. Use distinct keyword to only get unique results. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|