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

https://github.com/komputronika/simpledb

Simple MySQLi wrapper to handle common database queries and operations.
https://github.com/komputronika/simpledb

library mysql mysqli php

Last synced: 2 months ago
JSON representation

Simple MySQLi wrapper to handle common database queries and operations.

Awesome Lists containing this project

README

          

# SimpleDB #

SimpleDB is MySQLi wrapper to handle common database queries and operations.

**Include file:**
```php
id, $d->name
";
}
```

**Insert example:**
```php
$a = array();
$a['name'] = db_filter($_POST["name"]);
$a['age'] = db_filter($_POST["age"]);

db_insert("student", $a);
```

**Update example:**
```php
$a = array();
$a['name'] = "John Doe";
$a['age'] = 21;

db_update("student", $a, "id=10");
```

**Delete example:**
```php
db_delete("student", "id=5");
```

**Get last insert id:**
```php
//...
db_insert("student", $a);
$last_id = db_last_id();
```