php-db | 2000121
Date: 12/01/00
- Next message: Dave Fudge: "RE: [PHP-DB] oracle8"
- Previous message: Michael Geier: "[PHP-DB] [PHP] compiling with easysoft problems"
- In reply to: Dave Fudge: "[PHP-DB] oracle8"
- Next in thread: Dave Fudge: "RE: [PHP-DB] oracle8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
a very simple example:
<?
$query="SELECT col1,col2 FROM table ORDER BY col1";
$sth=OCIParse($GLOBALS["DBH"],$query);
OCIExecute($sth);
while (OCIFetchInto($sth,&$row,OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS))
{
?>
<TR>
<TD><?= $row["COL1"] ?></TD>
<TD><?= $row["COL2"] ?></TD>
</TR>
<?
}
OCIFreeStatement($sth);
?>
NOTE: the column names in $row MUST BE uppercase.
hope that helps.
Rgds,
Tfr
--==< tfr <email protected> >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==--
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Dave Fudge: "RE: [PHP-DB] oracle8"
- Previous message: Michael Geier: "[PHP-DB] [PHP] compiling with easysoft problems"
- In reply to: Dave Fudge: "[PHP-DB] oracle8"
- Next in thread: Dave Fudge: "RE: [PHP-DB] oracle8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

