From 33260959a1a666a636c0825a7bfba54cd174fc99 Mon Sep 17 00:00:00 2001 From: Indieteq Date: Wed, 14 Nov 2012 23:15:10 +0100 Subject: Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 38242b5..715dc0a 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,22 @@ if($insert > 0 ) { } ``` +## Method parameters +Every method which executes a query has the optional parameter called bindings. + +The row and the query method have a third optional parameter which is the fetch style. +The default fetch style is PDO::FETCH_ASSOC which returns an associative array. + +Here an example : + +```php +query("SELECT * FROM Persons", null, PDO::FETCH_NUM); +``` +More info about the PDO fetchstyle : http://php.net/manual/en/pdostatement.fetch.php + + EasyCRUD ============================ The easyCRUD is a class which you can use to easily execute basic SQL operations like(insert, update, select, delete) on your database. -- cgit v1.1