|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-09-19 17:40 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 13:00:01 2025 UTC |
In RC4 of php3, this function returned 129 in $ncols (correct value). In th 3.0 final release it returns 1 <? $conn = Ora_Logon("usr","pswd"); if ($conn < 0) { echo("Could not connect to Oracle.\n"); exit; } $cursor = Ora_Open($conn); if ($cursor < 0) { echo("Could not open a cursor.\n"); Ora_Logoff($conn); exit; } Ora_CommitOff($conn); $last = ereg_replace("'","''",$last); if (Ora_Parse($cursor, "select * FROM people where last_name like 'Smit%' and first_name like 'Jo%' and rownum < 2") < 0) { echo("Parse failed!\n"); Ora_Logoff($conn); exit; } $ncols = Ora_Exec($cursor); echo "Number of columns is $ncols\n"; $err = Ora_Fetch($cursor); while ($err == 1) { $i = 0; while ($i < $ncols) { $col = Ora_GetColumn($cursor, $i); echo "got: $col (" . GetType($col) . ")<br>"; echo "\n"; $i++; } echo "\n"; $err = Ora_Fetch($cursor); } Ora_Close($cursor); Ora_Logoff($conn); ?>