Execute("select * from ".$prefix."_studycat where lang=$lang LIMIT 1"); $scid = $studycat->fields['id']; } else { $scid = $_REQUEST['scid']; $studycat = $db->Execute("select * from ".$prefix."_studycat where id=$scid"); } if (!isset($_REQUEST['id']) or empty($_REQUEST['id']) or (!eregi("[0-9]", $_REQUEST['id']))) { $study = $db->Execute("select * from ".$prefix."_study where studycat_id=$scid LIMIT 1"); $id = $studycat->fields['id']; } else { $id = $_REQUEST['id']; $study = $db->Execute("select * from ".$prefix."_study where id=$id"); } $study_title = nl2br(html_entity_decode($study->fields['title'],ENT_QUOTES,"utf-8")); echo ''; ?>