note 8919 deleted from ibase_connect by jmcastagnetto

From: Date: Fri, 06 Oct 2000 10:45:01 +0000
Subject: note 8919 deleted from ibase_connect by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-6154@lists.php.net to get a copy of this message
The following code and moay others can not connect to server. OUTPUT IS: ------ Warning: 0 is not a valid InterBase link resource in c:apachehtdocs/test.php on line 7 Warning: InterBase: invalid database handle (no active connection) in c:apachehtdocs/test.php on line 7 Connetion-ID: Resource id #1 Statement rt: SELECT * FROM CUSTOMER Username: sysdba Warning: Supplied argument is not a valid InterBase result resource in c:apachehtdocs/test.php on line ----- &lt;?php $host='localhost:A.GDB'; $user='sysdba'; $pass='masterkey'; $stmt = 'SELECT * FROM CUSTOMER'; $dbh = ibase_connect ($host,$user,$pass); $sth=ibase_query($dbh,$stmt); print 'Connetion-ID: ' . $dbh; echo "<BR>"; print 'Statement rt: ' . $stmt; echo "<BR>"; print 'Username: ' . $user; echo "<BR>"; echo "<BR>"; while ($row = ibase_fetch_object ($sth)) { print $row->no1 . "n"; echo "<br>"; } ?>

« previous php.notes (#6154) next »