Just a simple bit of code i wrote for my pligg
Just drop this code whenever you want it in your template.PHP Code:// Number of members code start
We have:
<?php
// Query the database and get the count
$result = mysql_query("SELECT * FROM users");
$num_rows = mysql_num_rows($result);
// Display the results
echo $num_rows;
?>
members</a>
// Number of members code end
I will however add an extra sql query so if you have a very busy pligg this might not be a good idea.



Reply With Quote




