<div id="rightContent">
<div id="contentBox" class="right">
<div id="contentPadding" style="padding: 10px 10px 5px 10px;">
<div id="slickTitle" class="hotelStat">
<?php $userReg = mysql_num_rows(mysql_query("SELECT * FROM users")); ?>
<?php echo $userReg; ?> Registered Users
</div>
<div id="slickTitle" class="hotelStat">
<?php $totalFurni = mysql_num_rows(mysql_query("SELECT * FROM furniture")); ?>
<?php echo $totalFurni; ?> Total Furniture
</div>
<div id="slickTitle" class="hotelStat">
<?php $totalRooms = mysql_num_rows(mysql_query("SELECT * FROM rooms")); ?>
<?php echo $totalRooms; ?> Rooms Created
</div><br clear="all" />
</div>
</div>
</div>
Was wondering is there a better way of doing the above to select the total amount id's per table to gather statistics ? Also wondering how can I make it display things like this?
35k instead of 35000 ?