".$query."
".pmb_mysql_error()); return pmb_mysql_num_rows($result) ; } protected function add_data($categ, $label_code, $sub='', $url_extra='', $number=0) { $this->data[] = array( 'module' => $this->get_module(), 'section' => $this->get_section(), 'categ' => $categ, 'label_code' => $label_code, 'sub' => $sub, 'url_extra' => $url_extra, 'number' => $number ); } public function get_data() { if(!isset($this->data)) { $this->fetch_data(); } return $this->data; } }