| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Resistance is Futile Join Date: Apr 2006 Location: Montreal, Canada
Posts: 1,094
![]() ![]() ![]() ![]() ![]() ![]() | |
| |
| | #3 (permalink) |
| NamePros Regular Join Date: Feb 2006 Location: Montreal, Quebec, Canada
Posts: 324
![]() | if stripslashes isn't working you may have saved or resaved the data with the \' . If that's the case you'd need to manually edit it if its a small number of records because stripslashes won't help you. |
| |
| | #5 (permalink) |
| NamePros Member Join Date: Apr 2005
Posts: 117
![]() ![]() | ' comes out like \' when submitted through a form if your server has magic_quotes_gpc turned on. For a solution that works on all servers: if (get_magic_quotes_gpc()) { $variable = stripslashes($variable); } This is of course assumes the programmer knows when to add slashes when needed. For more information, please see the official PHP website: http://us2.php.net/manual/en/functio...quotes-gpc.php |
| |
| | THREAD STARTER #6 (permalink) |
| Resistance is Futile Join Date: Apr 2006 Location: Montreal, Canada
Posts: 1,094
![]() ![]() ![]() ![]() ![]() ![]() | Here is the code i'm using: PHP Code:
__________________ Freelance Web Developer PHP, MySQL, XHTML, CSS, Javascript, jQuery, Wordpress Portfolio: www.bundy.ca |
| |
| | #7 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,796
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | PHP Code: |
| |
| | THREAD STARTER #8 (permalink) |
| Resistance is Futile Join Date: Apr 2006 Location: Montreal, Canada
Posts: 1,094
![]() ![]() ![]() ![]() ![]() ![]() | Fixed it, it actually wasn't in that file, sorry for all of the trouble.
__________________ Freelance Web Developer PHP, MySQL, XHTML, CSS, Javascript, jQuery, Wordpress Portfolio: www.bundy.ca |
| |