$res = sql_select('column', 'table'); // operations using the sql_fetch($res) and similar functions ... // then close the resource sql_free($res);