Dear Readers,
I would like to make a scripts which changes the quotes in a variable to backslash + the quote.. because otherway MySQL won't accept my Query..
Gr.
Kasper Schoonman (17 yr)
<? $input_str='hello "to" you'; $output_str=str_replace("\"", "\\"", $input_str); echo $output_str; ?>
sod it wrong button I ment to add or
$output_str=addslashes($input_str);
hi i don't know a specific function for that, but try ti use this php function:
strtr ("string for the replacing act", "what should be replaced", "and with waht")
morem (hopeing his german english is understandable...)