AS3 to PHP to mySQL - problem with ' this little thing

Hi

I have a textfield where I type whatever I want

when I press a button it do the following:

  • add the content of the textfield to a String, this string is a mySQL generated dinamically.

  • send this string to a php that executes this mySQL query string;

everythings works fine. the only problem I have is when I need write a word with ’ like dog’s or la l’orona. How can I fiz this?

Thanks