From ff845f94cc8876bc6c23c2f55b695bc569038512 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Thu, 26 Jun 2008 17:05:55 +0000 Subject: changed your-site.com to example.com doc-wide --- user_guide/database/caching.html | 2 +- user_guide/database/helpers.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'user_guide/database') diff --git a/user_guide/database/caching.html b/user_guide/database/caching.html index 6d157abe1..c1ada2de9 100644 --- a/user_guide/database/caching.html +++ b/user_guide/database/caching.html @@ -178,7 +178,7 @@ $query = $this->db->query("SELECT * FROM another_table");

Deletes the cache files associated with a particular page. This is useful if you need to clear caching after you update your database.

The caching system saves your cache files to folders that correspond to the URI of the page you are viewing. For example, if you are viewing -a page at www.your-site.com/index.php/blog/comments, the caching system will put all cache files associated with it in a folder +a page at example.com/index.php/blog/comments, the caching system will put all cache files associated with it in a folder called blog+comments. To delete those particular cache files you will use:

$this->db->cache_delete('blog', 'comments'); diff --git a/user_guide/database/helpers.html b/user_guide/database/helpers.html index 10598f8a8..73c541269 100644 --- a/user_guide/database/helpers.html +++ b/user_guide/database/helpers.html @@ -110,7 +110,7 @@ $str = $this->db->insert_string('table_name', $data);

The first parameter is the table name, the second is an associative array with the data to be inserted. The above example produces:

-INSERT INTO table_name (name, email, url) VALUES ('Rick', 'rick@your-site.com', 'www.your-site.com') +INSERT INTO table_name (name, email, url) VALUES ('Rick', 'rick@example.com', 'example.com')

Note: Values are automatically escaped, producing safer queries.

@@ -127,7 +127,7 @@ $str = $this->db->update_string('table_name', $data, $where);

The first parameter is the table name, the second is an associative array with the data to be updated, and the third parameter is the "where" clause. The above example produces:

- UPDATE table_name SET name = 'Rick', email = 'rick@your-site.com', url = 'www.your-site.com' WHERE author_id = 1 AND status = 'active' + UPDATE table_name SET name = 'Rick', email = 'rick@example.com', url = 'example.com' WHERE author_id = 1 AND status = 'active'

Note: Values are automatically escaped, producing safer queries.

-- cgit v1.2.3-24-g4f1b