template = "template"; $this->module = "autorites"; $this->module_name = $msg[132]; parent::__construct(); } public function get_categories_informations(){ $return = array(); $query = "select count(id_noeud) as nb from noeuds"; $result = mysql_query($query); if(mysql_num_rows($result)){ $return = mysql_fetch_assoc($result); } return $return; } public function get_authors_informations(){ $return = array(); $query = "select count(author_id) as nb from authors"; $result = mysql_query($query); if(mysql_num_rows($result)){ $return = mysql_fetch_assoc($result); } return $return; } }