Re: use addslashes/stripslashes

From: Date: Fri, 16 May 2003 07:45:53 +0000
Subject: Re: use addslashes/stripslashes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147866@lists.php.net to get a copy of this message
hi, b> i want to know why should to use addslashes function before b> adding string input box to mysql. b> and use stripslashes after i get data from mysql. b> what happen when i not use this function? It's wrong. You must use mysql_escape_string() before adding string to mysql. That's all! Otherwise you'll get an error b> thanks, b> zuhear -- Anton

« previous php.general (#147866) next »