PHP code example of mamadou-aly-sy / database-connection
1. Go to this page and download the library: Download mamadou-aly-sy/database-connection 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/ */
mamadou-aly-sy / database-connection example snippets
ly the dsn is ' => 'sqlite:sqlite.db'];
$connection = new \MamadouAlySy\Database\Connection($credentials);
// open a the connection
$connection->open(); // returns PDO instance