* @version $Revision: 1.6 $ $Date: 2004/10/21 12:21:46 $
* @package Mobot Backend
*
*/
include_once('config.php');
$template = new template();
$template->title = 'MOBOT The Motherboard Database';
$template->section = 'mobot';
$template->description = 'Largest Motherboard database on the web.';
$template->open_page();
?>
Motherboard Database Statistics :: MOBOT :: Motherboard Database
select_db('mobot');
$sql = "SELECT COUNT(*) AS 'Count'
FROM $table";
$db->set_sql($sql);
$db->query();
if ($row = $db->fetch_row()) {
$count = $row[0];
} else {
$count = false;
}
$db->close();
return $count;
}
$t = new table();
$t->set_table_class('tablemobot');
$head_array = array('Stats', 'Count');
$t->set_thead($head_array);
$t->set_tfoot('Powered by MOBOT', 2);
$body_array = array('Motherboards', count_table('mobos'));
$t->set_tbody($body_array);
$body_array = array('Manufacturers', count_table('manuf'));
$t->set_tbody($body_array);
$body_array = array('Chipsets', count_table('chipset'));
$t->set_tbody($body_array);
$body_array = array('BIOS', count_table('bios'));
$t->set_tbody($body_array);
$body_array = array('Manuals', count_table('manual'));
$t->set_tbody($body_array);
$body_array = array('Drivers', count_table('driver'));
$t->set_tbody($body_array);
$body_array = array('Utilities', count_table('utility'));
$t->set_tbody($body_array);
$t->show_table();
?>
close_page();
?>