I\'m trying to create a function that will simply allow me to pass an SQL statement into it, and it will generate an array based on a unique ID I pass it:
functi
Untested and without proper error handling:
function oracleGetGata($query, $id="id") { global $conn; $results = array(); $sql = OCI_Parse($conn, $query); OCI_Execute($sql); while ( false!==($row=oci_fetch_assoc($sql)) ) { $results[ $row[$id] ] = $row; } return $results; }