From 885b0343036695ad673fc24ba7682fc155c54036 Mon Sep 17 00:00:00 2001
From: admin Sets a cookie containing the values you specify. There are two ways to pass information this function so that a cookie can be set:
-Arrray Method, and Discreet Parameters:set_cookie()
set_cookie($name, $value, $expire, $domain, $path, $prefix);
+Lets you fetch a cookie. The first parameter will contain the name of the cookie you are looking for:
+ +get_cookie('some_cookie');
+
+The function returns FALSE (boolean) if the item you are attempting to retrieve does not exist.
+ +The second optional parameter lets you run the data through the XSS filter. It's enabled by setting the second parameter to boolean TRUE;
+ +get_cookie('some_cookie', TRUE);
+
+
+
+Lets you delete a cookie. Unless you've set a custom path or other values, only the name of the cookie is needed:
+ +delete_cookie("name");
+
+This function is otherwise identical to set_cookie(), except that it does not have the value and expiration parameters. You can submit an array +of values in the first parameter or you can set discreet parameters.
+ +delete_cookie($name, $domain, $path, $prefix)
diff --git a/user_guide/libraries/database/active_record.html b/user_guide/libraries/database/active_record.html
index 793f41f1e..b45c5d14e 100644
--- a/user_guide/libraries/database/active_record.html
+++ b/user_guide/libraries/database/active_record.html
@@ -354,7 +354,7 @@ $this->db->orlike('body', $match);
Lets you set an ORDER BY clause. The first parameter contains the name of the column you would like to order by. -The second parameter lets you set the direction of the result. Options are asc or desc
+The second parameter lets you set the direction of the result. Options are asc or desc or RAND()$this->db->orderby("title", "desc");
// Produces: ORDER BY title DESC
--
cgit v1.2.3-24-g4f1b