Question

i have a simple form with a textarea and a save button. what is entered in the field is stored in mysql and then displayed on another page. each time you enter stuff in the textarea and save, it saves it on top of what is already stored, making an even longer string, if you see what i mean.

im using mysql_real_escape_string

on testing, when i enter an apostrophe for the first time it is displayed as \' which is correct. but when i enter an apostrophe again it breaks down

what is going on?

thanks

Was it helpful?

Solution

ahh. sorry. just worked it out. i wasnt escaping the original data that was being stored and then added on to the new data - if that makes sense

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top