1. Go to this page and download the library: Download uppercod/myq 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/ */
uppercod / myq example snippets
$pdo = new PDO("mysql:dbname=attack;host=localhost", "root", "");
$db = new MyQ\Connect([
"db" => $pdo,
"prefix"=> "sample_" // opcional
]);
$data = $db->el_nombre_de_mi_tabla // prepara el cursor hacia esta tabla
->select() // prepara la consulta select
->fetch(); // la ejecuta para obtener un resultado
$mi_tabla->select([
"mi campo"
])
$mi_tabla->select([
[
"mi campo",
"campo"
] // mi campo as campo
])