See the description of the sesam_query() function for a complete example using sesam_fetch_result().
See also: sesam_fetch_row(), and sesam_field_array() to check for "multiple fields". See the description of the sesam_query() function for a complete example using sesam_fetch_result().