Re: Magic Quotes Issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux