diff options
author | purandi <free6300@gmail.com> | 2011-09-04 14:51:23 +0200 |
---|---|---|
committer | purandi <free6300@gmail.com> | 2011-09-04 14:51:23 +0200 |
commit | ab0dbd4b992778678e00ea3f2a3dd4bf5f1ff504 (patch) | |
tree | 740d3cabe5e51f18578a72abf6e13e62fba9eb62 /user_guide/database | |
parent | dcf3d1bf17e1354ff0a644f390ed590f2e65298b (diff) | |
parent | 2eb2557bf1c438d8fb7d612dbb76c6676eaec4d6 (diff) |
Merge branch 'develop', remote-tracking branch 'origin/develop' into develop
Diffstat (limited to 'user_guide/database')
-rw-r--r-- | user_guide/database/active_record.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html index 92d9614d5..0f09e78c3 100644 --- a/user_guide/database/active_record.html +++ b/user_guide/database/active_record.html @@ -79,9 +79,6 @@ is generated by each database adapter. It also allows for safer queries, since <p>The following functions allow you to build SQL <strong>SELECT</strong> statements.</p> -<p><strong>Note: If you are using PHP 5 you can use method chaining for more compact syntax. This is described at the end of the page.</strong></p> - - <h2>$this->db->get();</h2> <p>Runs the selection query and returns the result. Can be used by itself to retrieve all records from a table:</p> @@ -532,7 +529,7 @@ $this->db->insert('mytable', $object); <p>Generates an insert string based on the data you supply, and runs the query. You can either pass an <strong>array</strong> or an <strong>object</strong> to the function. Here is an example using an array:</p> -<code> +<code> $data = array(<br/> array(<br /> 'title' => 'My title' ,<br /> @@ -544,7 +541,7 @@ $data = array(<br/> 'name' => 'Another Name' ,<br /> 'date' => 'Another date'<br /> )<br/> -);<br /> +);<br /> <br /> $this->db->update_batch('mytable', $data); <br /><br /> |