|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-05-16 02:18 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 10:00:01 2025 UTC |
<? echo "<table border=\"1\" cellspacing=\"0\" cellpadding=\"1\">"; $conn = Ora_Logon("scott","tiger"); if ($conn<0) { exit; } $cursor = Ora_Open($conn); if ($cursor<0) { Ora_Logoff($conn); exit; } Ora_CommitOff($conn); if (Ora_Parse($cursor, "select sysdate from dual") < 0) { Ora_Logoff($conn); exit; } $ncols = Ora_Exec($cursor); while (Ora_Fetch($cursor) == 1) { $i = 0; while ($i<$ncols) { $val = Ora_GetColumn($cursor, $i); echo "<td align=\"left\" valign=\"top\">"; echo $val; echo "</td>\n"; $i++; } echo "<tr>\n"; } Ora_Close($cursor); Ora_Logoff($conn); ?> Output: "15-MAR-98ATE 9 ?5x+ Kora_fetch ,? ?0?" Configure: configure --with-apache=/database/apache_1.3b5 --with-mysql=/database/mysql --enable-track-vars --with-oracle=/database/oracle7 Oracle version 7.3