summaryrefslogtreecommitdiffstats
path: root/user_guide/database/helpers.html
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/database/helpers.html')
-rw-r--r--user_guide/database/helpers.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/user_guide/database/helpers.html b/user_guide/database/helpers.html
index 1d1fb37ad..8302fe6ee 100644
--- a/user_guide/database/helpers.html
+++ b/user_guide/database/helpers.html
@@ -76,6 +76,14 @@ Query Helpers
correct number of affected rows. By default this hack is enabled but it can be turned off in the database driver file.</p>
+<h2>$this->db->count_all();</h2>
+<p>Permits you to determine the number of rows in a particular table. Submit the table name in the first parameter. Example:</p>
+<code>echo $this->db->count_all('<var>my_table</var>');<br />
+<br />
+// Produces an integer, like 25
+</code>
+
+
<h2>$this->db->platform()</h2>
<p>Outputs the database platform you are running (MySQL, MS SQL, Postgre, etc...):</p>
<code>echo $this->db->platform();</code>
@@ -86,7 +94,6 @@ correct number of affected rows. By default this hack is enabled but it can be
<code>echo $this->db->version();</code>
-
<h2>$this->db->last_query();</h2>
<p>Returns the last query that was run (the query string, not the result). Example:</p>