Plugin Directory

Changeset 1012198


Ignore:
Timestamp:
10/22/2014 03:23:41 PM (11 years ago)
Author:
redeyedmonster
Message:

Updated readme to highlight code example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • edit-any-table/trunk/readme.txt

    r1012195 r1012198  
    6363= If I save a text field with an apostrophe (') a backslash (\) is inserted prior to it in the database =
    6464
    65 WordPress assumes, for backwards capability, that Magic Quotes is switched on. Magic Quotes is used in earlier versions of PHP to prevent SQL injection.  If you are outputting the data from the database yourself into a post then use the function stripslashes_deep() i.e. '$records = stripslashes_deep($wpdb->get_results($sql,'ARRAY_A'));'. See the [codex](http://codex.wordpress.org/Function_Reference/stripslashes_deep).
     65WordPress assumes, for backwards capability, that Magic Quotes is switched on. Magic Quotes is used in earlier versions of PHP to prevent SQL injection.  If you are outputting the data from the database yourself into a post then use the function stripslashes_deep() i.e. `$records = stripslashes_deep($wpdb->get_results($sql,'ARRAY_A'));`. See the [codex](http://codex.wordpress.org/Function_Reference/stripslashes_deep).
    6666
    6767= Help! I've upgraded to version 2 and I can't see anything =
Note: See TracChangeset for help on using the changeset viewer.