Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/www/include/divers/get_attribute.php
<?php
include_once('../../config.inc.php');
if (!isset($_SESSION['oreon'])) Session::Start();
$oreon=$_SESSION['oreon'];
$default_cat=$_GET["default_cat"];
$result = $_SESSION["oreon"]->database->database->query("SELECT attribute,default_value,enum_value FROM radius_attribute WHERE category='$default_cat'");
$str="";
while ($row = $oreon->database->database->fetch_object($result)) {
	        $str.=$row->attribute.";";
}
echo $str;
?>
Return current item: phpMyPrepaid