I am using mysqli to insert a text value into a record, but if there is an ampersand in the textbox anything following the ampersand gets cut off. This isn’t obvious, of course, until trying to retrieve the text to view it.
I found to today the mysqli:real_escape_string() doesn’t do anything with ampersands. How can I avoid losing my data?