Location: PHPKode > scripts > Prioritexter > Categories.php
<?php
class Categories {

  var $categories;
 
  function Categories() {
    global $db;
    $cats = array();

    $result = $db->simpleSelect("category");
    while($myrow = mysql_fetch_array($result)) {
      if (array_search($myrow["category_name"],$cats)===FALSE)
	$cats[$myrow["category_id"]] = $myrow["category_name"];
    }
    $this->categories = $cats;
  }

}
?>
Return current item: Prioritexter