Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed May 9, 2010
1 parent 249ff74 commit cb690d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
An intuitive and simple database library with expressions based on sprintf formatting.

Example::

$result = $mydb->query("SELECT 1 FROM table WHERE fieldname = %s AND other_fieldname = %d", 'mystring', 5);
$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);
2 changes: 1 addition & 1 deletion db.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SQL functions library for PHP5
*
* @author David Cramer <dcramer@gmail.com
* @package mysqldb
* @package phpdatabase
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright 2008 David Cramer
* @version 0.1
Expand Down

0 comments on commit cb690d3

Please sign in to comment.