Is there an easier way to write this:
$selectStmt =ociParse($connection,$sql);
ociExecute($selectStmt);
while(ociFetch($selectStmt))
{
$tableColumns = ociNumCols($selectStmt);
for($nc = 1; $nc <= $tableColumns; $nc++)
{
$column[(ociColumnName($selectStmt, $nc))] = ociResult($selectStmt, $nc);
}
Also, how can I find the number of rows the results returned?
Thanks!
~Dave
$selectStmt =ociParse($connection,$sql);
ociExecute($selectStmt);
while(ociFetch($selectStmt))
{
$tableColumns = ociNumCols($selectStmt);
for($nc = 1; $nc <= $tableColumns; $nc++)
{
$column[(ociColumnName($selectStmt, $nc))] = ociResult($selectStmt, $nc);
}
Also, how can I find the number of rows the results returned?
Thanks!
~Dave