Aitor
12-08-2005, 01:15 PM
I want to add some data in forum stats, so it will be site stats.
For example, the "number of links" from the link directory.
I founded next code:
//To get the total number of links (from all active sections):
$getlinkcount = $DB->query_first("SELECT COUNT(*) AS linkcount FROM " . TABLE_PREFIX . "p16_links WHERE activated = '1'");
$linkcount = $getlinkcount['linkcount'];
Is it correct?
How can I add the option to the admin pages?
For example, the "number of links" from the link directory.
I founded next code:
//To get the total number of links (from all active sections):
$getlinkcount = $DB->query_first("SELECT COUNT(*) AS linkcount FROM " . TABLE_PREFIX . "p16_links WHERE activated = '1'");
$linkcount = $getlinkcount['linkcount'];
Is it correct?
How can I add the option to the admin pages?