summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/database/table_data.rst
diff options
context:
space:
mode:
authorpurwandi <free6300@gmail.com>2011-10-07 05:35:32 +0200
committerpurwandi <free6300@gmail.com>2011-10-07 05:35:32 +0200
commit550b12dd981c6f7736a957392f6aaf28bdef98dd (patch)
treec01a5460d3b3ad2649aa0f63efa0cf9ada0106df /user_guide_src/source/database/table_data.rst
parent15cec71083f3c3085b2e0d719496b195b7c48474 (diff)
parent02db0666a8b4da6a58db0e2f6755143ce1b21971 (diff)
Merge branch 'develop' of https://github.com/EllisLab/CodeIgniter into develop
Diffstat (limited to 'user_guide_src/source/database/table_data.rst')
-rw-r--r--user_guide_src/source/database/table_data.rst15
1 files changed, 11 insertions, 4 deletions
diff --git a/user_guide_src/source/database/table_data.rst b/user_guide_src/source/database/table_data.rst
index ec7dbbf6c..744a05154 100644
--- a/user_guide_src/source/database/table_data.rst
+++ b/user_guide_src/source/database/table_data.rst
@@ -10,7 +10,12 @@ $this->db->list_tables();
Returns an array containing the names of all the tables in the database
you are currently connected to. Example::
- $tables = $this->db->list_tables(); foreach ($tables as $table) {    echo $table; }
+ $tables = $this->db->list_tables();
+
+ foreach ($tables as $table)
+ {
+ echo $table;
+ }
$this->db->table_exists();
===========================
@@ -18,7 +23,9 @@ $this->db->table_exists();
Sometimes it's helpful to know whether a particular table exists before
running an operation on it. Returns a boolean TRUE/FALSE. Usage example::
- if ($this->db->table_exists('table_name')) {    // some code... }
+ if ($this->db->table_exists('table_name'))
+ {
+ // some code...
+ }
-Note: Replace *table_name* with the name of the table you are looking
-for.
+.. note:: Replace *table_name* with the name of the table you are looking for.