khanat-opennel-code/code/web/public_php/api/server/scripts/achievement_script/script/item_grade_script.php
shubham_meena c4ce26501c Merged in Gsoc14-ryzomAppImprovements (pull request #1)
Merging Gsoc 14 branch with default
2014-08-15 01:05:39 +05:30

13 lines
No EOL
260 B
PHP

<?php
function item_grade($item) {
global $DBc;
#echo $item;
$res = $DBc->sendSQL("SELECT grade FROM ryzom_nimetu_item_data WHERE sheetid='".str_replace(".sitem","",$item)."'","ARRAY");
#echo $res[0]['grade'];
return $res[0]['grade'];
}
?>