Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- ini_set('display_errors', 'On');
- $username = "SYSTEM"; // Use your username
- $password = "pass"; // and your password
- $database = "localhost/XE"; // and the connect string to connect to your database
- $conn = oci_connect($username, $password, $database);
- if (!$conn) {
- $m = oci_error();
- trigger_error(htmlentities($m['message']), E_USER_ERROR);
- }
- $sql = 'select * from dual';
- $stid = oci_parse($conn, $sql);
- $didbv = "user";
- oci_execute($stid);
- while (oci_fetch($stid)) {
- echo oci_result($stid, 'DUMMY') . " <<< TU MA BYC X ";
- }
- oci_free_statement($stid);
- oci_close($conn);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement