note 8919 added to ibase_connect

From: Date: Fri, 06 Oct 2000 01:53:11 +0000
Subject: note 8919 added to ibase_connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-6134@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:\apache\htdocs/test.php on line 7 Warning: InterBase: invalid database handle (no active connection) in c:\apache\htdocs/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:\apache\htdocs/test.php on line ----- <?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>"; } ?> http://www.php.net/manual/function.ibase-connect.php

« previous php.notes (#6134) next »