Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 18th, 2004, 08:49 AM
pyc pyc is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 13 pyc User rank is Corporal (100 - 500 Reputation Level)pyc User rank is Corporal (100 - 500 Reputation Level)pyc User rank is Corporal (100 - 500 Reputation Level)pyc User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 53 m 4 sec
Reputation Power: 0
problems with ibase_free_result (php function)

My setup: PHP 5.0.2, Firebird 1.5

I have some problems with ibase_free_result... It's something like:

Warning: ibase_free_result(): supplied argument is not a valid
Firebird/InterBase result resource in
/opt/lampp/htdocs/klad/include_core/ibase_sessions.php.inc on line 180

the function that is in question look like this:

function ibase_session_destroy($sessionID) {
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()


$db_session is global variable refering to database connection, it is
opened in function

function ibase_session_open($session_path, $session_name) { //cemu
sluze ova dva argumenta?
global $db_session;
$db_session = ibase_connect(DBHOST, USER, PASS) or die("error in db
connect");
return(true);
} // end ibase_session_open()



I really can't see the problem, starting to think it's some kind of
bug...... Please help!

BTW, these days I worked on a custom firebird/interbase session
handler in php... so if anyone is interested in these functions, I'll
post them here, just ask for it...

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > problems with ibase_free_result (php function)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT