PHP addslashes()


Back to php.


thibault    (2009-04-09)

thibault

PHP addslashes()

This function returns a string that can be used in database queries, with backslashes added just before special characters such as single quote ('), double quote ("), backslash (\) and NUL (NULL byte).

In example, the name O'connor may need to be quoted in a database query :

<?

$string = "My name is O'connor.";

// Outputs : My name is O\'connor.
print addslashes($string);

?>



See also


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 alternatives comparison | Michael Kimsal's weblog
michaelkimsal > blog

 Javascript equivalent for PHP's addslashes
kevin.vanzonneveld > techblog/article/javascript equivalent for

 PhpDig.net - PHP - addslashes
phpdig > ref/rn58re1153

is usually used to prepare a string for storage in a...
and is designed to provide information about the PHP programming...

 ISS X-Force Database: php-addslashes-view-files(18516): PHP addslashes view files
xforce.iss > xforce/xfdb/18516

 PHP AddSlashes to an Array
silverarm > items

 Addslashes - Add Slashes - Addslashes PHP
php.about > od

Add Slashes with Magic Quotes - Magic Quotes Compatable - Universal...

  * 函数 - 用法|在线手册|属性|方法
fzs8

 [PHP] * || Why the multiple slashes? - PHP Development
justskins > forums

 PHP: addslashes - Manual
jp2.php > addslashes

this is my version of an addslashes function, useful for processing...
Based on: Danijel Pticar 05-Aug-2009 05:22 I recommend this...
// all $_POST variables have slashes added to them...

 C# equivalence of php addslashes? - bytes
bytes > groups/net c/232124 c equivalence

 PHP: Add Slashes to text | Jason Slater Technology Blog
jasonslater > 2008/06/03/bits and bytes

It is sometimes necessary to maintain the special characters in text,...

 PHP addslashes help
forums.digitalpoint > showthread.

[PHP SCRIPT] 100% Free! JUST LAUNCHED - *YTMND* Clone...
it is for a user input, where about would I place that code in my...

 Python-equivalent of PHP addslashes/stripslashes functions?
mail.python > pipermail/python list/2001 November/111376

Since there're out there on a permanent file, that's...

 PHP: addslashes - Manual
fr.php > addslashes

this is my version of an addslashes function, useful for processing...
Based on: Danijel Pticar 05-Aug-2009 05:22 I recommend this...
// all $_POST variables have slashes added to them...

 PHP Addslashes to POST Array
colorplexstudios > articles

 Brandon Checketts » Blog Archive » Perl function equivalent of PHP’s *
brandonchecketts > archives/perl function equivalent of

Skipping the DROP TABLE, CREATE TABLE statements in a large mysqldump...
Sleeping for a random amount of time in a shell...

 php php php: php - addslashes function
phpphpphp.blogspot > 2007/01

 Rails for PHP Developers - Reference for PHP addslashes in Ruby
railsforphp > reference/strings/addslashes

Are you a PHP developer interested in the Ruby on Rails...
Looking for Rails or PHP web application development,...

 perl equivilent to php's * - JustLinux Forums
justlinux > forum/showthread.

Community Help: Check the Help Files, then come here to...

 PHP addslashes view files (PhpAddslashesViewFiles)
iss > security center/reference/vuln

 PHP: addslashes - Manual
php.filearena > manual/kr/function.addslashes.

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

 PHP addslashes function
bradino

addslashes -- Quote string with slashesDescriptionstring addslashes (...
URL Multiple Query Parameters Encoded with HTML Entities...

 .Net equivalent to PHP addslashes - ASP.NET Forums
forums.asp > t/1013131.aspx

Communifire: Social Networking and Business Collaboration...

 PHP addslashes and preg_replace in great cooperation
experts exchange > Web Development/Web Languages Standards

Subscribe now for full access to Experts Exchange and...
All Experts Exchange premium technology solutions are available to...
HI :) I am trying to add slashes to the following when...

 php addslashes | PHP String Functions | PHP Hypertext Preprocessor
interaktivmedia > webbutveckling

 PHP: * ; - ActionScript.org Forums
actionscript > forums/showthread.

Personally, I'd keep escaping my strings when going into...
sending xml via php - GOOD, but cant receive php...

 PHP: * ; - Flash Kit Community Forums
board.flashkit > board/showthread.

 PHP: addslashes - Manual
php > manual/de/function.addslashes.

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

 PHP: AddSlashes - Manual
es.php > addslashes

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

 PHP: addslashes - Manual
php.chinaunix > manual/zh/function.addslashes.

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

 PHP: addslashes - Manual
bogambilya.asti.dost.gov > manual/fr/function.addslashes.

 PHP :: Addslashes And Mysql
bigresource

 Free php addslashes Download - php addslashes Mac Software
mac.wareseeker > free

...= { 'pubId' : 'pub-8098918000470057', 'channel' :...
PHP iCalendar Development Team - PHP iCalendar is a high-speed and...

  * 函数
w3school.com

 How would I duplicate the php addslashes( ) command in clarion? - ObjectMix Forum
objectmix > clarion/164318 how would i duplicate

Clarion Third Party Best Dressed - Clarion ProSeries Site...



Response  
 

Guest name   (option)     Register
Please sum : 4982 + one  




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.