contest.php 217 B

12345678910111213
  1. <?php
  2. include 'con.php';
  3. $conn = StartCon();
  4. $sql = 'SELECT * FROM DTC_ACTION';
  5. $stid = oci_parse($conn, $sql);
  6. oci_execute($stid);
  7. $nrows = oci_fetch_all($stid, $res);
  8. echo json_encode($res);
  9. CloseCon($conn);
  10. ?>