Bug #3441 Updated: Magicquotes is not good.

From: Date: Wed, 16 Feb 2000 17:16:13 +0000
Subject: Bug #3441 Updated: Magicquotes is not good.
Groups: php.dev 
Request: Send a blank email to php-dev+get-15598@lists.php.net to get a copy of this message
ID: 3441 Updated by: sas Reported By: eric@friesen.org Status: Closed Bug Type: Feature/Change Request Assigned To: Comments: If you dislike magic quotes, don't use that feature. You can write your queries like this: mysql_query(sprintf("select * from foo where bar = '%s'", addslashes($input_data))); which makes the distinction of query language and data clear. Ad follows: The magic quotes chapter of "Professional PHP Programming" contains more information about when to use magic quotes and how you can replace it effectively. Full Bug description available at: http://bugs.php.net/?id=3441

« previous php.dev (#15598) next »