From 0ce275533d0707adb2c0263e5a77c10c351f969c Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 18 Mar 2008 17:48:06 +0000 Subject: html fixes --- user_guide/changelog.html | 2 +- user_guide/database/helpers.html | 2 +- user_guide/database/queries.html | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 7ba6c3e7b..d17ae9ca7 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -86,7 +86,7 @@ Change Log
  • Fixed an AR_caching error where it wasn't tracking table aliases (#3463).
  • Fixed a bug in the DB class testing the $params argument.
  • Fixed a bug in the Table library where the integer 0 in cell data would be displayed as a blank cell.
  • -
  • Fixed a bug (#3523) in get_filenames() with recursion.

    +
  • Fixed a bug (#3523) in get_filenames() with recursion.
  • Version 1.6.1

    diff --git a/user_guide/database/helpers.html b/user_guide/database/helpers.html index d6cf170d7..409660e2a 100644 --- a/user_guide/database/helpers.html +++ b/user_guide/database/helpers.html @@ -67,7 +67,7 @@ Query Helpers

    $this->db->affected_rows()

    Displays the number of affected rows, when doing "write" type queries (insert, update, etc.).

    -

    Note: In MySQL "DELETE FROM TABLE" returns 0 affected rows. The database class has a small hack that allows it to return the +

    Note: In MySQL "DELETE FROM TABLE" returns 0 affected rows. The database class has a small hack that allows it to return the correct number of affected rows. By default this hack is enabled but it can be turned off in the database driver file.

    diff --git a/user_guide/database/queries.html b/user_guide/database/queries.html index 59f7e23b4..e443958e0 100644 --- a/user_guide/database/queries.html +++ b/user_guide/database/queries.html @@ -92,13 +92,11 @@ It simply lets you submit a query. Most users will rarely use this function.

    CodeIgniter has two functions that help you do this:

      -
    1. $this->db->escape() This function determines the data type so that it can escape only string data. It also automatically adds single quotes around the data so you don't have to: $sql = "INSERT INTO table (title) VALUES(".$this->db->escape($title).")";
    2. -
    3. $this->db->escape_str() This function escapes the data passed to it, regardless of type. Most of the time you'll use the above function rather then this one. Use the function like this: -- cgit v1.2.3-24-g4f1b