I have a database table for User in that i have two fields USER_ID and USER_DESCRIPTION, If i run the bellow code i get array in the form.
Array ( [USER_ID] => 1 [USER_DESCRIPTION] => TAB )
But i want to access those value in index based like 0, 1.How to i get that.
while (($result = oci_fetch_array($data, OCI_ASSOC)) != false) {
echo $result['USER_ID']. ' - ' .$result['USER_DESCRIPTION']; //This works
echo $result[0]. ' - ' .$result[1]; //This is how i want to access the values
}