|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-05-05 09:59 UTC] kara
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 19:00:02 2025 UTC |
We are using ODBC to connect to an Oracle 7.3 database through Sql*Net (by Oracle). Source example: $dd = odbc_connect("ORCL","news","news"); $lars = odbc_exec($dd,"select ntb_header from ntb_news order by ntb_id desc"); $numr = odbc_num_rows($lars); $numr always returns -1. This is not correct. odbc_result_all($lars); prints out the correct result. This problem also affects other functions, like odbc_fetch_row($lars, $i); if $i=1 it complains that: Warning: Field index is larger than the number of fields in c:\apache\htdocs\news.phtml on line 18 .. and we are unable to get any data using any other function than odbc_result()..