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.
interesting, I think I *might* be able to do this my self! though it adds a extra query to the index page!
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...
heres the code in php/mysql PHP: // 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!