Re: Magic Quotes Issue

From: Date: Tue, 07 Dec 2004 18:26:08 +0000
Subject: Re: Magic Quotes Issue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203679@lists.php.net to get a copy of this message
Shaun wrote: > function db_query($query) { > if(!magic_quotes_gpc()){ > $qid = mysql_query(addslashes($query)); > } else { > $qid = mysql_query($query); > } > return $qid; > } > > But this adds too many slashes! Has anyone come to a better solution > regarding this? Can you give us some examples of your input data, and what you think is "too many slashes"?... Because if the above isn't doing what you want, then something is very wrong somewhere else. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#203679) next »