select_first_row('sq_apps', '*', array('ID' => $id), 'AND'); } function app_idgetname($id) { global $db; if (!$result = $db->select_first_row('sq_apps', 'appname', array('ID' => $id), 'AND')) { return false; } return $result['appname']; } function level_idgetname($id) { global $db; if (!$result = $db->select_first_row('sq_level', 'lname', array('ID' => $id), 'AND')) { return false; } else { return $result['lname']; } }