Update README.md

This commit is contained in:
SergeyTsalkov
2013-06-05 00:19:36 -07:00
parent 58e564c3d5
commit 8090f4e7dc

View File

@@ -12,7 +12,7 @@ Code Examples
========
### Grab some rows from the database and print out a field from each row.
$accounts = DB::query("SELECT * FROM login WHERE username=%s AND password=%s", $username, $password);
$accounts = DB::query("SELECT * FROM accounts WHERE type = %s AND age > %i", $type, 15);
foreach ($accounts as $account) {
echo $account['username'] . "\n";
}