From e7e1dcd452a15abaaa01c03cd1ade564e3a59453 Mon Sep 17 00:00:00 2001
From: admin You can include an operator in the first parameter in order to to control the comparison: You can include an operator in the first parameter in order to control the comparison: 2. You can gather the feild names associated with any query you run by calling the function
+ 2. You can gather the field names associated with any query you run by calling the function
from your query result object: Sometimes it's helpful to know whether a particular field exists befor performing an action.
+ Sometimes it's helpful to know whether a particular field exists before performing an action.
Returns a boolean TRUE/FALSE. Usage example: If you have run a query already you can use the result oject instead of supplying the table name: If you have run a query already you can use the result object instead of supplying the table name:$this->db->where('name !=', $name);
-
$this->db->where('id <', $id);
diff --git a/user_guide/database/fields.html b/user_guide/database/fields.html
index d70314b5a..1ae1a392b 100644
--- a/user_guide/database/fields.html
+++ b/user_guide/database/fields.html
@@ -80,7 +80,7 @@ foreach ($fields as $field)
}
@@ -96,7 +96,7 @@ foreach ($query->list_fields() as $field)
$this->db->field_exists()
-
@@ -133,7 +133,7 @@ foreach ($fields as $field)
-
}
$query = $this->db->query("YOUR QUERY")
diff --git a/user_guide/database/queries.html b/user_guide/database/queries.html
index 39ad00f12..a13e2d6a5 100644
--- a/user_guide/database/queries.html
+++ b/user_guide/database/queries.html
@@ -87,7 +87,7 @@ It simply lets you submit a query. Most users will rarely use this function.
It's a very good security practice to escape your data before sumbiting it into your database. +
It's a very good security practice to escape your data before submitting it into your database. Code Igniter has two functions that help you do this: