Location: PHPKode > projects > Athena Research Assistant > athena-dev-0.1pre-alpha/includes/convert_categories.inc.php
<?php
//THIS FUNCTION WILL LOOK UP THE CATEGORY ID AND GENERATE ITS VERBOSE EQUVALENT 
//BASED ON THE DATABASE ENTRY IN ath_categories

function convertCAT($value){

$getCAT = mysql_query("SELECT * FROM ath_categories WHERE ath_categories_id=$value");

if (!$getCAT){
	echo("<p class=\"red\">adduserFORM.php COULD NOT GET GROUP INFO");
}

$ROWgetCAT = mysql_fetch_array($getCAT);

return($ROWgetCAT["ath_categories_label"]);

}
?>
Return current item: Athena Research Assistant