An open API service indexing awesome lists of open source software.

https://github.com/damir-sijakovic/sqlite3_php_pdo_examples

Examples on how to use Sqlite3 DB with PHP PDO.
https://github.com/damir-sijakovic/sqlite3_php_pdo_examples

example examples pdo php sqlite3

Last synced: 10 months ago
JSON representation

Examples on how to use Sqlite3 DB with PHP PDO.

Awesome Lists containing this project

README

          

# Sqlite3 PHP PDO examples

Examples on how to use Sqlite3 DB with PHP PDO.

What is covered:

* init database
* insert
* update
* delete
* search (like, equal)
* get last record id
* get all records
* count records

### Usage

Run in terminal:

php -S localhost:8080
firefox localhost:8080

Edit/un-comment functions in 'index.php'.
You can monitor changes in created .db file with: https://sqlitebrowser.org/

### Licence
MIT

### Have fun