Problem addslashes() does not work


Back to security.


*47e2ee    (2009-08-05)
Problem addslashes() does not work

Hi,

Here is my problem, sometimes I have to addslashes() a long string, and it seems it does not always work as my INSERT request in my MySQL database returns an error, that's a very rare case but it does happen.

Does anyone have an idea about the problem ?  In my tests in the string to insert I cannot see a ' or " (quotes) without \ before but it still does not work.

It is a real problem as addslashes() helps to protect my SQL server. Help!!


ficgs
Suggestions


ficgs
More websites

You must register to see these links, as this is a collaborative page, then you may change the order of the links by clicking the icons before the titles.



admin
Other websites

The following links might be less relevant, please change their ranks if you find them useful.


 PHP: addslashes - Manual
php.chinaunix > manual/zh/function.addslashes.php
  1. this is my version of an addslashes function, useful for processing
  2. Based on: Danijel Pticar 05-Aug-2009 05:22 I recommend this
 PHP: addslashes - Manual
us2.php > manual/en/function.addslashes.php

this is my version of an addslashes function, useful for processing...
Based on: Danijel Pticar 05-Aug-2009 05:22 I recommend this...

 addslashesPHP 手册后退前进addslashes (PHP 3, PHP 4, PHP 5)addslashes -- 使用反斜线引用字符串描述string addslashes ( str...
php > php/function.addslashes

and put in your SQL field='$chrData' ! please remark...
In response to Krasimir Slavov and Luiz Miguel Axcar: There are...

 PHP: addslashes - Manual
php.oregonstate > manual/en/function.addslashes.php

this is my version of an addslashes function, useful for processing...
Based on: Danijel Pticar 05-Aug-2009 05:22 I recommend this...

 Sveit.com • Information
sveit > forum/viewtopic.php?f=12&t=1525

 PHP :: Addslashes Problem, Magic Quotes On
bigresource > PHP Addslashes

Alternative To Addslashes For Quotes And Double...
im trying to learn php and i have a question that i can not find...

 addslashes() issue [Archive] - CodingForums.com
codingforums > archive/index.php/t 126689

 WordPress's idea of SQL injection security: addslashes
wonko > post/wordpresss idea of sql injection security addslashes

Don't type anything here unless you're an evil robot:...
Font Squirrel | Create Your Own @font-face Kits...

 addslashes-PHP手册
kuqin > php5 doc/function.addslashes

and put in your SQL field='$chrData' ! please remark...
Also, it is worth mentioning that PostgreSQL will soon start to...
In response to Krasimir Slavov and Luiz Miguel Axcar: There...

 ADDSLASHES and HTMLENTITIES don't seem to work - PHPBuilder.com
phpbuilder > board/showthread.php?t=10348914

we have set up discounts and benefits to help 'subsidise' our...
PHP Builder: manuals, content management systems, scripts, classes...

 Addslashes(): don't call it a comeback
cognifty > blog.entry/id=6/addslashes dont call it a comeback

 DevNetwork Forums • View topic - Fun with addslashes()
forums.devnetwork > viewtopic.php?t=43203

Just as a side-note, your blog doesn't validate (69 errors):...
In fact, even the situation I brought up only applies to multi-byte...

 NYPHP - PHundamentals - Functions for Storing Data Submitted From a Form and Retrieving Data from a Database
nyphp > phundamentals/storingretrieving.php

 Problem with addslashes - Dev Shed
forums.devshed > php development 5

function addslashes_deep($value) { if (!get_magic_quotes_gpc())...
function addslashes_deep($value) { if(is_array($value)) {...

 Catchable fatal error: Object of class __PHP_Incomplete_Class ... wp-db.php « Theme Hybrid Support
themehybrid > support/topic/catchable fatal error object of class php incomplet

 phpHoo, Part I - Webreference.com
webreference > perl/xhoo/php1/9

Article: Explore Application Lifecycle Management Tools in Visual...
Virtual Event: Master Essential Techniques for Leveraging the...

 addslashes v mysql_real_escape_string in PHP
wellho > mouth/1724 addslashes v mysql real escape string in PHP

Crossrefering documents with uniqueness and inconsistency issues -...
Moving the product forward - ours, and MySQL, Perl, PHP and Python...

 Making A Value In A Textbox Stay
astahost > info.php/Making Textbox Stay t18181

therefor, I use addslashes() But thanks for the warnings =) people...
This textarea will convert to Rich-Text automatically (IE, Firefox,...

 Perl equivalent to PHP addslashes... - infoqu.com
infoqu > dev/perl programming/perl equivalent to php addslashes 90355 1

 addslashes() allows SQL injection attacks | Ken's Tech Tips
cow.neondragon > index.php/1302 Addslashes Allows Sql Injection Attacks

What does 500MB or 1GB internet actually mean? Explaining mobile data...
PAC Codes: How to transfer your mobile number when switching networks...

 Clarify use of addslashes, stripslashes & mysql_real_escape_string : PHP
experts exchange > Web Development/Web Languages Standards/PHP/Q 23574191

Subscribe now for full access to Experts Exchange and...
All Experts Exchange premium technology solutions are available to...

 addslashes() vs mysql_real_escape_string()...the final debate - SitePoint Forums
sitepoint > forums/showthread.php?t=337881&page=2

The mysql_real_escape_string function does not protect against SQL...
So how does that translate into mysql_real_escape_string() being...

 Programming & Development: exec/mogrify problem - www.itags.org
itags > programming/479971

 PHP Top 5 - OWASP
owasp > index.php/PHP Top 5

 Zen Lightbox... - Zen Cart Support
zen cart > forum/showthread.php?t=45314&page=8

Content and Graphics Copyright (c) 2006, 2007, 2008, 2009, 2010,...
one issue though, what happens if we have additional images in the...

 Addslashes and Stripslashes
javascript.about > b/2008/08/21/addslashes and stripslashes.htm

 Addslashes.net - Frequently Asked Questions
addslashes > faq.php

 MySQL error... - PhotoPost Community
photopost > forum/classifieds bug reports/113508 mysql error

An error was encountered during execution of the query:...
Be sure to be careful with the $_FILES['userfile']['name']...



Response  
 

Guest name   (option)     Register
Please sum : 3080 + two  




Trackbacks : If you talked about this article in your blog or website, you may instantly get a backlink 
There's no trackback at the moment.