![]() |
mySQL count(*) query returning a weird value
Code:
$membercount = $db->query_read('SELECT COUNT(*) FROM ' . TABLE_PREFIX . 'user'); What? I also tried this: Code:
$membercount = $db->query_read('SELECT COUNT(*) FROM ' . TABLE_PREFIX . 'user'); I want to be able to display how many users I have registered on an external forum page so all I need is to get that mySQL query working right. Any help is appreciated. |
Because you did a select count from the ENTIRE table, not a specific field
use $membercount[users] |
try $db->fetch_array instead.
|
All times are GMT. The time now is 03:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|