note 29820 deleted from function.mysql-query by didou

From: Date: Sat, 16 Aug 2003 09:25:41 +0000
Subject: note 29820 deleted from function.mysql-query by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54300@lists.php.net to get a copy of this message
Note Submitter: pdroessler at tks dot at ---- this is rather obvious, but it gave me a lot of pain, so I'll post it here. mysql does not understand single quotes (') or backslashes (\) in queries, so if you need to add something containing these signs to a mysql database, use urlencode : $foo = "jimmy's chicken shack"; $foo = urlencode($foo);

« previous php.notes (#54300) next »