Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top