Subject RE: [firebird-php] Warning on ibase_close() function
Author Alan McDonald
Hi Milan,
This is the script
<?
$dbh =
ibase_connect('servername/3051:c:\\path\\database.gdb','sysdba','masterkey',
'ISO8859_1',0,1);
$sth = ibase_query('SELECT content_html FROM content');
while ($row = ibase_fetch_row($sth)) {
print $row->content_html."\n";
ibase_blob_echo($row[0]);
}
ibase_free_result($sth);
ibase_close($DBH);
?>

And I get the warning.. (not error) maybe I can turn warnings off but this
still needs to be understood...
thanks again
Alan

AH - ha! - it's the uppercase DBH - lowercase does not give the warning
sorry
Alan
-----Original Message-----
From: Milan Babuskov [mailto:albis@...]
Sent: Friday, 5 December 2003 6:28 PM
To: firebird-php@yahoogroups.com
Subject: Re: [firebird-php] Warning on ibase_close() function


Alan McDonald wrote:
> I've just noticed that I get this warning on ibase_close() which I was
> pretty sure I never got before but maybe - is this not to be used as
> documented?
> thanks
>
> Warning: ibase_close(): 0 is not a valid InterBase link resource in
> C:\InetPub\folder\debugvars.php on line 57

How do you connect, with connect() or pconnect() ?
Are you supplying link to the ibase_close(), or close it just with
ibase_close(); without parameters?

--
Milan Babuskov
http://fbexport.sourceforge.net



Yahoo! Groups Sponsor



To unsubscribe from this group, send an email to:
firebird-php-unsubscribe@yahoogroups.com



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


[Non-text portions of this message have been removed]