Re: Escape Data In/Out of db [solved]

From: Date: Thu, 09 Apr 2009 16:41:18 +0000
Subject: Re: Escape Data In/Out of db [solved]
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-291305@lists.php.net to get a copy of this message
At 5:03 PM +0200 4/9/09, Jan G.B. wrote:
You might want to use htmlspecialchars($str, ENT_QUOTES)
OUT from db to html and
mysql_real_escape_string(stripslashes($_POST['yourself']));
IN to db from html Thanks, that worked. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#291305) next »