PHP code example of reneknox / database-connector
1. Go to this page and download the library: Download reneknox/database-connector 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/ */
reneknox / database-connector example snippets
use Reneknox\DatabaseConnector\Database;
Server',
dbName: 'databaseName',
username: 'username',
password: 'password'
);
$database->connect()->query(
query: "select id,name from example where email=:email",
params: [
'email' => '[email protected]'
]);
$database->find(); // to fetch one result
$database->get(); // to fetch all result