diff options
author | Simon Holywell <[email protected]> | 2017-03-21 11:36:19 +1000 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2017-03-21 11:36:19 +1000 |
commit | 5e879fc591f2d64578dad581576d5b02abc3796d (patch) | |
tree | 28f671e406cc31d21369045d490e3f4dd2bbf855 | |
parent | 3fdc455c65b26d76453ed1f716b58d9665bba5c3 (diff) |
correct some typos in docs :(
-rw-r--r-- | docs/querying.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/querying.rst b/docs/querying.rst index e64fc93..1ea5a25 100644 --- a/docs/querying.rst +++ b/docs/querying.rst @@ -848,7 +848,7 @@ Selecting rows .. warning:: - You really, should not be doing this, use Idiorm with ``raw_query`()` instead + You really, should not be doing this, use Idiorm with ``raw_query()`` instead where possible. Here is a simple query implemented using ``raw_execute()`` - note the call to @@ -857,6 +857,7 @@ Here is a simple query implemented using ``raw_execute()`` - note the call to .. code-block:: php + <?php $res = ORM::raw_execute('SHOW TABLES'); $statement = ORM::get_last_statement(); $rows = array(); @@ -885,6 +886,7 @@ return a configured instance of `PDO`_. .. code-block:: php + <?php $pdo = ORM::get_db(); foreach($pdo->query('SHOW TABLES') as $row) { var_dump($row); |