|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-09 00:37 UTC] sniper@php.net
[2005-03-09 14:34 UTC] j-pieper at web dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 02:00:01 2025 UTC |
Description: ------------ When I am using ibase_execute to execute an query i can?t use one of the ibase_fetch_* functions. I always get the same error. -- php.ini: -- extension=php_interbase.dll -- Database: -- table: FOOBAR ------ | ID | ------ | 1 | ------ Reproduce code: --------------- <?php $link = ibase_connect('...', '...', '...'); $sql = "SELECT * FROM FOOBAR"; $query = ibase_prepare($sql); $result = ibase_execute($query); // Variant 1 $foo = ibase_fetch_assoc($result); // Variant 2 $foo = ibase_fetch_object($result); // Variant 3 $foo = ibase_fetch_row($result); ?> Expected result: ---------------- Array ( [0] => 1 ) Actual result: -------------- Variant 1: Warning: ibase_fetch_assoc(): 5 is not a valid Firebird/InterBase result resource Variant 2: Warning: ibase_fetch_object(): 5 is not a valid Firebird/InterBase result resource in Variant 3: Warning: ibase_fetch_row(): 5 is not a valid Firebird/InterBase result resource