Jump to content


forum stats


  • Please log in to reply
3 replies to this topic

#1 _*rc69_*

_*rc69_*
  • Guests

Posted 25 August 2004 - 06:03 PM

hey, ive been looking all over for pretty much this exact thing (and i found it, yay!)
big downside is... its for ipb and i run on phpbb ;)

<?php
$db_host = "localhost"; 
$db_user = "username"; 
$db_pass = "password"; 
$db_name = "database"; 
$db = mysql_connect($db_host,$db_user,$db_pass); 
mysql_select_db ($db_name) or die ("Cannot connect to database");
$query = mysql_query("SELECT * FROM `ibf_stats`");
$stats = mysql_fetch_array($query);
?> 

<?php
echo $stats[MEM_COUNT]." Members<br>";
echo $stats[TOTAL_REPLIES]+$stats[TOTAL_TOPICS]." Posts<br>";
echo $stats[TOTAL_TOPICS]." Topics<br>"; 
?>

i tried changing it to work with phpbb instead... but i have no clue what to look for in my SQL db, nor do i know how EXACTLY to add what ever i find to the code... so, could anybody change it to work with a phpbb'd db?

#2 _*rc69_*

_*rc69_*
  • Guests

Posted 18 September 2004 - 09:10 PM

ha! i figured it out myself
http://graphic-desig...d.../php/online

so who ever wants to close this now, can

p.s. i double posted because i can't edit my post subject

#3 _*Unreal_*

_*Unreal_*
  • Guests

Posted 19 September 2004 - 03:54 PM

hey this is just what ive been looking for, thanks for bringin this up!
edit : hehe yay 100th post

#4 rc69

rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 06 October 2004 - 07:01 PM

you're welcome, now... who wants to close/delete this? :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users