require_once('./global.php');$result = $db->query_first("select .....");.....$db->free_result($result);$db->close();