The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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
");
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|