note 47903 added to function.ibase-connect

From: Date: Sun, 05 Dec 2004 01:02:36 +0000
Subject: note 47903 added to function.ibase-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-81370@lists.php.net to get a copy of this message
Just to update Simon's note... Things must have been fixed since Simon wrote that note. With PHP5 the following example works flawlessly: $strconnect = 'localhost:/opt/firebird/examples/employee.fdb'; if (!($db=ibase_connect($strconnect, 'sysdba', 'yourpass', 'ISO8859_1', 0, 1))) die('Could not connect: ' . ibase_errmsg()); $sql = "SELECT PO_NUMBER, ORDER_STATUS, ITEM_TYPE FROM SALES"; $cursor = ibase_query($sql); $row_array = ibase_fetch_row($cursor); print_r($row_array); ibase_free_result($cursor); ibase_close($db); Also you CAN get away with the following connection string: ibase_connect('/opt/firebird/examples/employee.fdb', 'sysdba', 'yourpass') ---- Manual Page -- http://www.php.net/manual/en/function.ibase-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47903 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47903&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47903&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47903&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47903&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47903&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47903&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47903&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81370) next »