Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Help: RevCMS Stats
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Whip" data-source="post: 300313" data-attributes="member: 39479"><p>If You Still Need Help Here PHP Coded Just Add To Page. </p><p></p><p>[PHP]<div class="habblet-container "></p><p></p><p><div class="cbb clearfix red"></p><p></p><p><h2 class="title">{hotelName} Statistics</h2></p><p></p><p><div id="notfound-content" class="box-content"> <center></p><p></p><p> Users online: <?php $sql = "SELECT COUNT(*) FROM users WHERE online = '1'";</p><p>$query = mysql_query($sql) or die(mysql_error());</p><p>$hoeveel = mysql_result($query,0,0);</p><p></p><p>echo $hoeveel; ?> <br></p><p>Registered Users:</p><p><?php</p><p>$query = mysql_query("SELECT COUNT(*) AS aantalleden FROM users") or die(mysql_error());</p><p>$data = mysql_fetch_assoc($query);</p><p></p><p>echo $data['aantalleden'];</p><p>?></p><p><br />Rooms:</p><p><?php</p><p>$query = mysql_query("SELECT COUNT(*) AS aantalkamers FROM rooms") or die(mysql_error());</p><p>$data = mysql_fetch_assoc($query);</p><p></p><p>echo $data['aantalkamers'];</p><p>?></p><p><br />Badges:</p><p><?php</p><p>$query = mysql_query("SELECT COUNT(*) AS aantalbadges FROM user_badges") or die(mysql_error());</p><p>$data = mysql_fetch_assoc($query);</p><p></p><p>echo $data['aantalbadges'];</p><p>?></p><p><br />Favorite rooms:</p><p><?php</p><p>$query = mysql_query("SELECT COUNT(*) AS aantalfavouritekamers FROM user_favorites") or die(mysql_error());</p><p>$data = mysql_fetch_assoc($query);</p><p></p><p>echo $data['aantalfavouritekamers'];</p><p>?></p><p><br />Furniture:</p><p><?php</p><p>$query = mysql_query("SELECT COUNT(*) AS aantalmeubels FROM furniture") or die(mysql_error());</p><p>$data = mysql_fetch_assoc($query);</p><p></p><p>echo $data['aantalmeubels'];</p><p>?></p><p><br />Furniture in the catalog:</p><p><?php</p><p>$query = mysql_query("SELECT COUNT(*) AS aantalmeubels FROM catalog_items") or die(mysql_error());</p><p>$data = mysql_fetch_assoc($query);</p><p></p><p>echo $data['aantalmeubels'];</p><p>?></p><p> </center></a></div></div></p><p> </div></p><p> [/PHP]</p></blockquote><p></p>
[QUOTE="Whip, post: 300313, member: 39479"] If You Still Need Help Here PHP Coded Just Add To Page. [PHP]<div class="habblet-container "> <div class="cbb clearfix red"> <h2 class="title">{hotelName} Statistics</h2> <div id="notfound-content" class="box-content"> <center> Users online: <?php $sql = "SELECT COUNT(*) FROM users WHERE online = '1'"; $query = mysql_query($sql) or die(mysql_error()); $hoeveel = mysql_result($query,0,0); echo $hoeveel; ?> <br> Registered Users: <?php $query = mysql_query("SELECT COUNT(*) AS aantalleden FROM users") or die(mysql_error()); $data = mysql_fetch_assoc($query); echo $data['aantalleden']; ?> <br />Rooms: <?php $query = mysql_query("SELECT COUNT(*) AS aantalkamers FROM rooms") or die(mysql_error()); $data = mysql_fetch_assoc($query); echo $data['aantalkamers']; ?> <br />Badges: <?php $query = mysql_query("SELECT COUNT(*) AS aantalbadges FROM user_badges") or die(mysql_error()); $data = mysql_fetch_assoc($query); echo $data['aantalbadges']; ?> <br />Favorite rooms: <?php $query = mysql_query("SELECT COUNT(*) AS aantalfavouritekamers FROM user_favorites") or die(mysql_error()); $data = mysql_fetch_assoc($query); echo $data['aantalfavouritekamers']; ?> <br />Furniture: <?php $query = mysql_query("SELECT COUNT(*) AS aantalmeubels FROM furniture") or die(mysql_error()); $data = mysql_fetch_assoc($query); echo $data['aantalmeubels']; ?> <br />Furniture in the catalog: <?php $query = mysql_query("SELECT COUNT(*) AS aantalmeubels FROM catalog_items") or die(mysql_error()); $data = mysql_fetch_assoc($query); echo $data['aantalmeubels']; ?> </center></a></div></div> </div> [/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Help: RevCMS Stats
Top