README formatting corrections
This commit is contained in:
parent
39d70bf808
commit
0c2997789d
10
README.md
10
README.md
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
A query builder/abstraction layer.
|
A query builder/abstraction layer.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
* Pdo extensions for the databases you wish to use (unless it's Firebird, in which case, the interbase extension is required)
|
||||||
|
* PHP 5.2+
|
||||||
|
|
||||||
## Databases Supported
|
## Databases Supported
|
||||||
|
|
||||||
* Firebird
|
* Firebird
|
||||||
@ -10,10 +14,6 @@ A query builder/abstraction layer.
|
|||||||
* SQLite
|
* SQLite
|
||||||
* Others, via ODBC
|
* Others, via ODBC
|
||||||
|
|
||||||
## Requirements
|
|
||||||
* Pdo extensions for the databases you wish to use (unless it's Firebird, in which case, the interbase extension is required)
|
|
||||||
|
|
||||||
|
|
||||||
## Connecting
|
## Connecting
|
||||||
|
|
||||||
Create a connection array or object similar to this:
|
Create a connection array or object similar to this:
|
||||||
@ -42,6 +42,6 @@ Query uses the same interface as CodeIgniter's [Active Record class](http://code
|
|||||||
|
|
||||||
To retreive the results of a query, use the PDO methods `fetch` and `fetchAll`.
|
To retreive the results of a query, use the PDO methods `fetch` and `fetchAll`.
|
||||||
|
|
||||||
$query = $this->db->get('table_name');
|
$query = $db->get('table_name');
|
||||||
|
|
||||||
$results = $query->fetchAll(PDO::FETCH_ASSOC);
|
$results = $query->fetchAll(PDO::FETCH_ASSOC);
|
Loading…
Reference in New Issue
Block a user