insertArticle.php 332 B

12345678910111213141516
  1. <?php
  2. include 'con.php';
  3. $conn = StartCon();
  4. $ins = oci_parse($conn, "INSERT INTO DTC_ARTICLE VALUES ('FI9457','','Gehäusedeckel','')");
  5. oci_execute($ins);
  6. $sql = 'SELECT * FROM DTC_ARTICLE';
  7. $stid = oci_parse($conn, $sql);
  8. oci_execute($stid);
  9. $nrows = oci_fetch_all($stid, $res);
  10. echo json_encode($res);
  11. CloseCon($conn);
  12. ?>