https://github.com/dcramer/php-database
A simple database library for MySQL and PGSQL.
https://github.com/dcramer/php-database
Last synced: about 2 months ago
JSON representation
A simple database library for MySQL and PGSQL.
- Host: GitHub
- URL: https://github.com/dcramer/php-database
- Owner: dcramer
- License: bsd-2-clause
- Created: 2009-09-10T19:06:02.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2010-05-09T20:29:04.000Z (over 15 years ago)
- Last Synced: 2025-02-06T11:18:57.205Z (11 months ago)
- Language: PHP
- Homepage:
- Size: 148 KB
- Stars: 6
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
An intuitive and simple database library with expressions based on sprintf formatting.
Example::
$mydb = new MySQLdb('localhost', 'root', 'password', false, 'database_name);
$result = $mydb->query("SELECT 1 FROM table WHERE fieldname = %s AND other_fieldname = %d", 'mystring', 5);