summaryrefslogtreecommitdiffstats
path: root/user_guide/database/fields.html
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-01 05:38:04 +0200
committeradmin <devnull@localhost>2006-10-01 05:38:04 +0200
commitb2a9ceccdb85050cb494e6d0a98b0a49495d29bb (patch)
tree16307166046e516304e5d38a072b6e8534657927 /user_guide/database/fields.html
parent0e42554740e2256eb9bf33bfb2f91788a99a1348 (diff)
Diffstat (limited to 'user_guide/database/fields.html')
-rw-r--r--user_guide/database/fields.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/user_guide/database/fields.html b/user_guide/database/fields.html
index 260cd222f..83abe6327 100644
--- a/user_guide/database/fields.html
+++ b/user_guide/database/fields.html
@@ -94,6 +94,23 @@ foreach ($query->list_fields() as $field)<br />
</code>
+<h2>$this->db->field_exists();</h2>
+
+<p>Sometimes it's helpful to know whether a particular field exists befor performing an action.
+Returns a boolean TRUE/FALSE. Usage example:</p>
+
+<code>
+if ($this->db->field_exists('field_name', 'table_name'))<br />
+{<br />
+&nbsp;&nbsp; // some code...<br />
+}
+</code>
+
+<p>Note: Replace <em>field_name</em> with the name of the column you are looking for, and replace
+<em>table_name</em> with the name of the table you are looking for.</p>
+
+
+
<h2>$this->db->field_data();</h2>
<p>Returns an array of objects containing field information.</p>