View Single Post
Old 12-18-2003, 02:01 AM   #2
Freddie
Green Mole
 
Join Date: Dec 2003
Posts: 8
I don't know much about php but... I got it


before head:

PHP Code:
$relative_script_path '..';
include 
"$relative_script_path/includes/config.php"
and...

PHP Code:
$phpdig_tables = array('sites'=>'Hosts','spider'=>'Pages');

while (list(
$table,$name) = each($phpdig_tables))
       {
       
$result mysql_fetch_array(mysql_query("SELECT count(*) as num FROM ".PHPDIG_DB_PREFIX."$table"),MYSQL_ASSOC);
       print 
"<tr>\n\t<td class=\"greyFormLight\">\n$name : </td>\n\t<td class=\"greyForm\">\n<b>".$result['num']."</b></td>\n</tr>\n";
       }

print 
"</table>\n"
Freddie is offline   Reply With Quote