Hello ..
for example :
magic_quotes is off , what is solution ?PHP Code:$query = mysql_query("SELECT * FROM table WHERE username='" . $_COOKIE['username'] . "'");
| SitePoint Sponsor |
Hello ..
for example :
magic_quotes is off , what is solution ?PHP Code:$query = mysql_query("SELECT * FROM table WHERE username='" . $_COOKIE['username'] . "'");




http://nl3.php.net/manual/en/functio...ape-string.php
Note that you can use a function where you check wether magic quotes is on or off, and escape if necessary..
Go visit my site :-D you know you want to ;-)
www.mech7.net
thanks but what about addslashes ?




You do not need addslashes when using that function - it will take care of everything for you.
Stackbox CMS - Full edit-on-page drag-and-drop CMS
Autoridge - Vehicle information & maintenance part numbers
Twitter | Blog | Online Javascript Compressor
Bookmarks