The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Get multiple listing of ipaddress is user table
I am trying to get every ip address from user that is listed more than once. How can I do this? I know I need to do a count(ipaddress) but can't get the right output. Thanks
|
#2
|
|||
|
|||
Try...
Code:
$db->query_read(" SELECT COUNT(ipaddress) AS ipcount, userid, username, ipaddress FROM " . TABLE_PREFIX . "user GROUP BY ipaddress HAVING COUNT(ipaddress) > 1 "); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|