PHP code example of khalilleo-webagentur / sql-connector
1. Go to this page and download the library: Download khalilleo-webagentur/sql-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/ */
khalilleo-webagentur / sql-connector example snippets
use Khalilleo\Connector\PdoConnect;
use Khalilleo\Connector\SqlOperation;
uery = new SqlOperation($connect->pdo, 'user_table');
// SqlOperation::find(..)
// SqlOperation::findOneBy(..)
// SqlOperation::findBy(..)
// SqlOperation::findAll(..)
// SqlOperation::query(..)
// SqlOperation::save(..)
// SqlOperation::remove(..)
die(var_export($query->find(1), true)); // 1 => WHERE user_id = 1