From 7a1362f586bfc5cefca28cda7ba5e6a58ee07c94 Mon Sep 17 00:00:00 2001 From: Bryan Nielsen Date: Thu, 6 Jun 2024 17:04:18 -0400 Subject: [PATCH] Fix some spelling mistakes --- docs/development/legacy/libraries/database.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/development/legacy/libraries/database.md b/docs/development/legacy/libraries/database.md index dc73e0ded..4b287b599 100755 --- a/docs/development/legacy/libraries/database.md +++ b/docs/development/legacy/libraries/database.md @@ -88,7 +88,7 @@ When many rows of data are returned you will wish to loop through the returned a } } -## INSERTTing Data +## INSERTing Data Active Record includes `insert()`, `insert_batch()` and `set()` methods that makes the inserting of data into the database easier by correctly formatting the `INSERT` string and escaping the values being inserted. The `insert()` and `insert_batch()` methods accept the name of the table for the insert and an array containing the field names as keys with the values containing the data for those fields: @@ -106,7 +106,7 @@ Upon performing an insert you might wish to know the value of the primary key fo ee()->db->insert('channel', array('name' => $name)); $entry_id = ee()->db->insert_id(); -## UPDATEEing Data +## UPDATEing Data Active Record also includes `update()` and `update_batch()` methods that makes the updating of data in the database easier by correctly formatting the UPDATE string and escaping the values being inserted. Both methods accept the name of the table for the update, an array containing the field names as keys with the values containing the updated data for those fields, and the `WHERE` clause for choosing which rows in the table to update: @@ -122,7 +122,7 @@ Active Record also includes `update()` and `update_batch()` methods that makes t ) ); -## DELETEEing Data +## DELETEing Data Like `UPDATE`'s and `INSERT`'s, Active Record has a `delete()` method for deleting data. It accepts a table name and a string or array containing the `WHERE` clause(s):