![]() |
Small Hack
How Do I List Diff Users Count On Main Page
Platinum Members: ? Platinum+ Members: ? Moderators: ? Super Moderator: ? Administrators: ? How Do I Fill In The "?"'s i know it's a templat edit, but what coding is required for it to work? |
This requires more of a template edit. It requires code modications also.
Something like this in your index.php: PHP Code:
|
Fatal error: Call to undefined function: invtal() in /var/www/html/platinum/index.php on line 16
|
Typo from mist, change invtal into intval
|
Platinum+ Members: Array
ummm? |
$platinum_users[total]
$platinumplus_users[total] $moderators[total] etc make sure you add the array name after the variable. |
Thanx Neo!!! Hey, U Want To Make That Hack For Me?
|
$3M1=$DB_site->query_first("SELECT FROM 3MStatus WHERE 3M1");
$3M2=$DB_site->query_first("SELECT FROM 3MStatus WHERE 3M2"); $3M3=$DB_site->query_first("SELECT FROM 3MStatus WHERE 3M3"); $3M4=$DB_site->query_first("SELECT FROM 3MStatus WHERE 3M4"); Do You See Problem With This? |
Yes, in the WHERE clause you arent setting a column. You need to use WHERE colname = '3m1' etc
(You have to change colname though) Also, you aren't selecting anything. (If you want to select everything, use SELECT * ) |
i have in my database
Table: 3MStstus And Col's 3M1 3M2 3M3 3M4 |
All times are GMT. The time now is 09:25 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:
|