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";