1. Go to this page and download the library: Download qdladoooo/sweeter-fetch 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/ */
qdladoooo / sweeter-fetch example snippets
use SweeterFetch\SweeterFetch;
$sf = new SweeterFetch('host', 'username', 'password');
//return nothing
$sf->Enq('use candy_shop;');
//return [row1, row2, ...]
$sf->Eq($sql);
//return the first row by array
$sf->Eor($sql);
//return a column
$sf->Ec($sql);
//return a number
$sf->Es($sql);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.