Ok ill try to help a little here. To show the newest registered member make a new file called "newestmember.inc.php" and place the code below into it.
See it in action here:
http://www.extremeforums.com/include...member.inc.php
Here is the code:
Code:
<?php
require("/full/path/to/admin/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassword);
mysql_select_db($dbname);
$query = "select * from user order by userid desc limit 1";
$resultlatest = mysql_query($query,$db);
$latest_array = mysql_fetch_array($resultlatest);
echo "<FONT FACE=\"Verdana, Arial, Helvetica, sans-serif\" SIZE=\"2\"><b>Greetings to our newest member, <a href=\"http://www.extremeforums.com/forums/member.php?action=getinfo&userid=$latest_array[userid]\" target=_blank>$latest_array[username]</a> !</b></font>";
?>
------------------------------------------------------------
For the
total number of members make a file called "totalmembers.inc.php" and place the following code into it:
Code:
<?php
require("/full/path/to/admin/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassword);
mysql_select_db($dbname);
$query = "select * from user";
$resultlatest = mysql_query($query,$db);
$num = mysql_num_rows($resultlatest);
echo "<FONT FACE=\"Verdana, Arial, Helvetica, sans-serif\" SIZE=\"2\">There are currently <b>$num</b> registered members.</font>";
?>
See this one in action here:
http://www.extremeforums.com/include...embers.inc.php
------------------------------------------------------------
For the
total posts make a new file called "totalposts.inc.php" and include the following:
Code:
<?php
require("/full/path/to/admin/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassword);
mysql_select_db($dbname);
$query = "select * from post";
$resultlatest = mysql_query($query,$db);
$num = mysql_num_rows($resultlatest);
echo "<FONT FACE=\"Verdana, Arial, Helvetica, sans-serif\" SIZE=\"2\">There are currently <b>$num</b> posts on the forums.</font>";
?>
See an example here:
http://www.extremeforums.com/include/totalposts.inc.php
------------------------------------------------------------
For the
total threads make a file called "totalthreads.inc.php" and include the following:
Code:
<?php
require("/full/path/to/admin/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassword);
mysql_select_db($dbname);
$query = "select * from thread";
$resultlatest = mysql_query($query,$db);
$num = mysql_num_rows($resultlatest);
echo "<FONT FACE=\"Verdana, Arial, Helvetica, sans-serif\" SIZE=\"2\">There are currently <b>$num</b> threads on the forums.</font>";
?>
Here is the example:
http://www.extremeforums.com/include...hreads.inc.php
------------------------------------------------------------
Hope this helps
If you have any questions just let me know
~Chris