I am trying to print the result of the query to the screen. For example Im looking to count the number of times REC appears in my db which is 3 times. So I could say select count(*).... which would output the number 3. When I put this into my code I only get 1. I get 1 no matter what happens. I looked up ociexecute and its 1 for success or 0 for fail. How would I accomplish this?Every example I see is too confusing.
Code:
//$db_conn = <the database connection info. > $query = "select count(*) from test_table"; $parsed = ociparse($db_conn, $query); $succ = ociexecute($parsed);
Comment