diff options
author | Simon Holywell <[email protected]> | 2017-03-21 11:37:28 +1000 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2017-03-21 11:37:28 +1000 |
commit | c52eb3e1605157821301f1ee614ac87fc782fdba (patch) | |
tree | 28f671e406cc31d21369045d490e3f4dd2bbf855 | |
parent | f2f170c44af4761fef8ef34d6dbc237cd95df799 (diff) | |
parent | 5e879fc591f2d64578dad581576d5b02abc3796d (diff) |
Merge branch 'develop'
-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); |