<?php include 'con.php'; $conn = StartCon(); $sql = 'SELECT * FROM DTC_ACTION'; $stid = oci_parse($conn, $sql); oci_execute($stid); $nrows = oci_fetch_all($stid, $res); echo json_encode($res); CloseCon($conn); ?>