Advertisement
blackpab

test X

May 8th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2.  
  3. error_reporting(E_ALL);
  4. ini_set('display_errors', 'On');
  5.  
  6. $username = "SYSTEM"; // Use your username
  7. $password = "pass"; // and your password
  8. $database = "localhost/XE"; // and the connect string to connect to your database
  9.  
  10.  
  11. $conn = oci_connect($username, $password, $database);
  12. if (!$conn) {
  13. $m = oci_error();
  14. trigger_error(htmlentities($m['message']), E_USER_ERROR);
  15. }
  16.  
  17. $sql = 'select * from dual';
  18. $stid = oci_parse($conn, $sql);
  19. $didbv = "user";
  20. oci_execute($stid);
  21.  
  22. while (oci_fetch($stid)) {
  23. echo oci_result($stid, 'DUMMY') . " <<< TU MA BYC X ";
  24. }
  25.  
  26. oci_free_statement($stid);
  27. oci_close($conn);
  28.  
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement