Don't despair. I can't see anything wrong with this so far.
You just haven't gone far enough.
The value returned by ociparse is a resource identifier.
ociexecute($parsed) executes the statement.
Note the resource identifier is passed in the function
Now you need to unravel the result.
You will need
- oci_fetch_array ($parsed)
-
//or
-
oci_fetch_assoc ($parsed).
Your query will only return a count which should be the first array element
- $query = "select count(*) from test_table";
So to see this figure use
[PHP]$result = oci_fetch_array($parsed);
$count = $result[0];
echo 'Count '.$count;[/PHP]I think this last bit is right. Apologies if not.