Go Back   Hardware Forums > Network Forums > Suggestions and Feedback

Reply
 
LinkBack Thread Tools
Old 15-08-2004, 10:03 PM   #1 (permalink) Top
Nonconformist Geek
 
Anti-Trend's Avatar
 
Join Date: Oct 2003
Age: 27 Male
Posts: 4,884
Times Helpful: 538
Status: Offline

My Computer

Default Avg Member Age in Statistics?

In the Statistics section of the forum, would it be too difficult to add the average member age to the existing statistics? Not that it's very important, nor 100% accurate (people don't always put their correct BD). I just think it'd be an interesting snippet of info.

Send a message via ICQ to Anti-Trend Send a message via AIM to Anti-Trend   Reply With Quote
Whats this? diNovo Media Desktop Laser
diNovo Media Desktop Laser
Seller Price (inc. VAT) Delivery Total Price Availability Seller Rating
Dell £132.58 Free £132.58 In Stock Rated: 0 out of 5 - Number of votes: 0
Misco.co.uk £126.49 £3.99 £130.48 In Stock Rated: 4 out of 5 - Number of votes: 1356
IT247.com £110.88 Free £110.88 In Stock Rated: 4 out of 5 - Number of votes: 38
Old 15-08-2004, 09:25 PM   #2 (permalink) Top
Administrator
 
Sniper's Avatar
 
Join Date: Oct 2001
Age: 25 Male
Posts: 4,434
Times Helpful: 119
My Mood: Bored
Status: Offline

My Computer

interesting, I think I *might* be able to do this my self! though it adds a extra query to the index page!
  Reply With Quote
Old 15-08-2004, 11:43 PM   #3 (permalink) Top
Nonconformist Geek
 
Anti-Trend's Avatar
 
Join Date: Oct 2003
Age: 27 Male
Posts: 4,884
Times Helpful: 538
Status: Offline

My Computer

Sweet
Send a message via ICQ to Anti-Trend Send a message via AIM to Anti-Trend   Reply With Quote
Old 16-08-2004, 12:07 AM   #4 (permalink) Top
Administrator
 
Sniper's Avatar
 
Join Date: Oct 2001
Age: 25 Male
Posts: 4,434
Times Helpful: 119
My Mood: Bored
Status: Offline

My Computer

I posted at the vb forums, I will see if I get any replies! I found a code, but gives the avg age of around 1.000 which isnt right!
  Reply With Quote
Old 16-08-2004, 12:22 AM   #5 (permalink) Top
Nonconformist Geek
 
Anti-Trend's Avatar
 
Join Date: Oct 2003
Age: 27 Male
Posts: 4,884
Times Helpful: 538
Status: Offline

My Computer

Quote:
Originally Posted by Sniper
I posted at the vb forums, I will see if I get any replies! I found a code, but gives the avg age of around 1.000 which isnt right!
Hmm, I wonder if that has anything to do with people not including their birthdays at all? I wonder if those cases can be filtered out of the data set...
Send a message via ICQ to Anti-Trend Send a message via AIM to Anti-Trend   Reply With Quote
Old 16-08-2004, 11:47 PM   #6 (permalink) Top
Administrator
 
Sniper's Avatar
 
Join Date: Oct 2001
Age: 25 Male
Posts: 4,434
Times Helpful: 119
My Mood: Bored
Status: Offline

My Computer

it sure can be, but not the fake dates? not had a reply at the vbforums yet!
  Reply With Quote
Old 17-08-2004, 10:48 AM   #7 (permalink) Top
Supreme Geek
 
Join Date: Jan 2003
Age: 27
Posts: 1,638
Times Helpful: 16
My Mood: Sick
Status: Offline

My Computer

You can filter.

We could even write the thing ourselves.
  Reply With Quote
Old 17-08-2004, 05:22 PM   #8 (permalink) Top
Administrator
 
Sniper's Avatar
 
Join Date: Oct 2001
Age: 25 Male
Posts: 4,434
Times Helpful: 119
My Mood: Bored
Status: Offline

My Computer

heres the code in php/mysql

PHP Code:
// average age 
$result=$DB_site->query_first("SELECT YEAR(NOW())-AVG(YEAR(birthday)) AS avgage FROM user WHERE YEAR(birthday) <> 0"); 
$age=$result['avgage']; 
what it does it take the current year - the average year of birth, which should give the average age!
  Reply With Quote
Old 17-08-2004, 05:44 PM   #9 (permalink) Top
Administrator
 
Sniper's Avatar
 
Join Date: Oct 2001
Age: 25 Male
Posts: 4,434
Times Helpful: 119
My Mood: Bored
Status: Offline

My Computer

its ok, I got it!

Edit: Average Age: 25
  Reply With Quote
Old 18-08-2004, 03:04 AM   #10 (permalink) Top
Nonconformist Geek
 
Anti-Trend's Avatar
 
Join Date: Oct 2003
Age: 27 Male
Posts: 4,884
Times Helpful: 538
Status: Offline

My Computer

Nice! Hmm, the avg. age is a little older than I thought it would be.
Send a message via ICQ to Anti-Trend Send a message via AIM to Anti-Trend   Reply With Quote
Old 18-08-2004, 04:29 PM   #11 (permalink) Top
Administrator
 
Sniper's Avatar
 
Join Date: Oct 2001
Age: 25 Male
Posts: 4,434
Times Helpful: 119
My Mood: Bored
Status: Offline

My Computer

yeh! but you have to consider people, who have provided a false date of birth!
  Reply With Quote
Old 20-08-2004, 08:14 PM   #12 (permalink) Top
The King

 
Addis's Avatar
 
Join Date: Jan 2004
Age: 18 Male
Posts: 5,255
Times Helpful: 403
My Mood: Drunk
Status: Offline

My Computer

yeah i put my age as 14 now. and i'm 14...now.
__________________
Never trust a program you don't have the source code for.

My website | Powerful Desktop Linux | Linux for human beings | Linux for power users | Linux for ricers
Send a message via MSN to Addis   Reply With Quote
Old 20-08-2004, 08:38 PM   #13 (permalink) Top
Administrator
 
Sniper's Avatar
 
Join Date: Oct 2001
Age: 25 Male
Posts: 4,434
Times Helpful: 119
My Mood: Bored
Status: Offline

My Computer

thanks dude
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Official Member Case Gallery ProcalX Old Gallery (no posts allowed) 3 15-03-2005 10:27 PM


All times are GMT +1. The time now is 04:14 AM.


Copyright © 2000 - 2008 · HARDWAREFORUMS.COM · All rights reserved