Subject | Re: [firebird-php] problems with ibase_free_result |
---|---|
Author | Lester Caine |
Post date | 2004-10-19T09:11:13Z |
domanovic wrote:
from a 'SELECT'. You do not need it with 'DELETE' as it simple returns
true or false - there is no result_set to free.
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
> function ibase_session_destroy($sessionID) {ibase_free_result() will free up the memory used but the array of fields
> global $sess_table;
> global $db_session;
>
> $query = "DELETE FROM $sess_table WHERE SID = '$sessionID'";
> $result = ibase_query($db_session, $query);
> ibase_free_result($result);
> ibase_commit();
> //return(true);
> } // end ibase_session_destroy()
from a 'SELECT'. You do not need it with 'DELETE' as it simple returns
true or false - there is no result_set to free.
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services