Welcome to Geeklog, Anonymous Sunday, November 24 2024 @ 10:43 pm EST
Geeklog Forums
what would the code be for...
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!"
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!"
10
8
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
try something like this:
<?php
$usercount = (DB_getItem($_TABLES['users'], 'count(*)') - 1);
$retval = 'Contact information for ' . $usercount . ' Alumni!';
echo $retval;
?>
Text Formatted Code
<?php
$usercount = (DB_getItem($_TABLES['users'], 'count(*)') - 1);
$retval = 'Contact information for ' . $usercount . ' Alumni!';
echo $retval;
?>
9
9
Quote
All times are EST. The time is now 10:43 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content