PHP code example of pdo / secure-connector
1. Go to this page and download the library: Download pdo/secure-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/ */
pdo / secure-connector example snippets
function : name _CreateVars()
Location : vendor\pdo\connecter\src\helper.php
Line Number: 56
Modify : self::$Path = "/.env"; | to -> self::$Path = "vendor/pdo/connecter/src/.env";
use Src\Connect_me;
-- How to use it --
$db = new Connect_me();
$qry = $db->conn->prepare("SELECT * FROM `tablename` WHERE 1");
$qry->execute();
$row = $qry->fetch(PDO::FETCH_OBJ);
echo $row->user_code;
use Src\create_session;
-------------------------
And use it
$session->set('name', 'John');