is your :
$result=odbc_do($conn, $query);
something like:
function odbc_do($conn,$query) {
$i=0;
$stmt=OCIParse($conn,$query);
if ($stmt) {
$i = OCIExecute($stmt);
}
return $i;
}
if so you could create a fetch row function as follows:
function fetchRow($stmt,$assoc=""){
if ($assoc=="assoc") {
OCIFetchInto($stmt,$fetchResult,OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS);
}
else{
OCIFetchInto($stmt,$fetchResult,OCI_NUM+OCI_RETURN_NULLS+OCI_RETURN_LOBS);
}
return($fetchResult);
}
You could then fetch the rows out as associative or indexed.
Hope this helps,
Chris