Quote:
Originally Posted by chazzy69
Ok i understand that such characters can be used to determine wether a database is susceptable to injections, but this is not some much the reason im doing this its more the reason im trying to store data and the appostrephe is screwing this up.
So i looked at both the escape characters and the addslahes, the escape characters look more like what i need but only a slight problem i cant read german and don't understand the explanations of each of the parameters of the function.
So could you please post a reasonably example of this function in action.
Thanks for the help
[EDIT]
Lol i didn't realise that you change the page to english, anyway i understand the function now but can i use the function without a link indentifyier; Can this function be used on a straight string in php without anything to do with mysql??
Becuase i want to remove any specail characters before making any my_sql connections
There has to be a mysql connection present for this to work.
It'll make no difference if you do the escaping after the connection is established. You don't *need* a link identifier; the last connection will be assumed.