|
ora_numcols
Returns the number of columns
(PHP 4, PHP 5 <= 5.0.5)
Returns the number of columns in a result. It only returns meaningful values after a parse/exec/fetch sequence. NotesWhen using oci8 as a replacement for the deprecated oracle extension, consider using:
See Also
Code Examples / Notes » ora_numcolstim dot mcguire
I would like to correct the above documentation. I am able to get results from ora_numcols after a parse & exec sequence and before a fetch: ora_parse($curs,$query); ora_exec($curs); $numfields = ora_numcols($curs); for($col=0;$col<$numfields;$col++){ echo ora_columnname($curs,$col); } while(ora_fetch($curs)){ etc......................... } |