Posted on: 05/02/05 12:45pm
By: jetshack
I've recently put together an alumni site for a high school. In the course of less than a month the user base is aproaching 250.
Is there a quick and easy way to display the number of registered users a site has?
I'd like to put a sentence in the header which says something like:
"Contact information for over xxx Alumni!"
what would the code be for
Posted on: 05/02/05 01:03pm
By: machinari
try something like this:
<?php
$usercount = (DB_getItem($_TABLES['users'], 'count(*)') - 1);
$retval = 'Contact information for ' . $usercount . ' Alumni!';
echo $retval;
?>
what would the code be for
Posted on: 05/02/05 04:05pm
By: jetshack
thank you