1. Go to this page and download the library: Download fastpress/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/ */
select($table, $columns = ['*'], $where = [])
// Fetches a single row.
selectAll($table, $columns = ['*'], $where = [])
// Fetches all rows matching criteria.
insert($table, $data)
// Inserts a new row and returns the inserted ID.
update($table, $data, $where)
// Updates rows matching where conditions and returns the number of affected rows.
delete($table, $where)
// Deletes rows matching where conditions and returns the number of affected rows.
query($sql, $params = [])
// Executes a raw SQL query.
getQueries()
// Returns an array of executed queries.
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.