simple php class connect to mysql database
git clone https://github.com/7elven/PHP-MySQLi.git
require_once '/{path-to}/PHPMySQLi.php';
$db = new PHPMySQLi('localhost','username','password','database');
$sql = "SELECT * FROM users WHERE user = ?";
$params = ["john"]; //$params is array
$result = $db->query($sql,$params);
$fetch = $db->fetch_all($result);
print_r($fetch);
$sql = "INSERT INTO users (user,email) VALUES (?,?)";
$params = ["jay","[email protected]"]; //$params is array
$db->query($sql,$params);