|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-08-05 16:01 UTC] mbritton at cvs dot php dot net
[1999-08-06 01:55 UTC] thies at cvs dot php dot net
[2016-07-08 21:13 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 05:00:01 2025 UTC |
If you try to do $colname = OCIColumnName($stmt, $i) AFTER you have called OCIFetchInto(...) then $colname will be empty. If you call it BEFORE OciFetchInto everything works as it should. This behaviour gave me a headache for a few hours... So the correct way to do it should be: OCIPLogon(...) $stmt = OCIParse($query) OCIExecute($stmt...) for ($i=1; $i <= number of columns; $i++) { $colname[$i] = OCIColumnName($stmt, $i); } while (OCIFetchInto(....)) { // do smthng with the actual data }