PHP code example of next / database

1. Go to this page and download the library: Download next/database 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/ */

    

next / database example snippets


$db = new \Next\Database\Database(new \Next\Database\PDOConfig());

$query = $db->query(); // 实例化,建立连接
$query->select('select * from users');
$query->selectOne('select * from users limit 1');
$query->delete('delete from users where id = 1');

//...