PHP code example of alfmel / pdo-via-oci8
1. Go to this page and download the library: Download alfmel/pdo-via-oci8 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
alfmel / pdo-via-oci8 example snippets
$pdo = new alfmel\OCI8\PDO($dsn, $username, $password);
$statement = $pdo->prepare("SELECT * FROM MY_TABLE");
$statement->execute();
$result_set = $statement->fetchAll(PDO::FETCH_ASSOC);