diff options
author | admin <devnull@localhost> | 2006-09-26 04:09:05 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-26 04:09:05 +0200 |
commit | 910d8620519d777ab45bdad5fb6dc9f05c6b2869 (patch) | |
tree | edb4af16a4062cbf034fcd9dba9aad4a34abfacf /user_guide/database | |
parent | 9cd4e8e639a1a09fd6ca426f1af94586f30d4a80 (diff) |
Diffstat (limited to 'user_guide/database')
-rw-r--r-- | user_guide/database/helpers.html | 9 |
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>
|