Pre-save helper and apostrophes.
Hi. I've built a helper that will fill out field with something if it was left empty (e.g. "User hasn't entered anything"). The problem is in saving apostrophes in text, because SQL treats them (as far as i understand) as data begin/data end symbols (error alert box appears). How do i protect them from being recognized as language symbols?
update. I should always google it - looks like mysql-real-escape-string is the answer.
edited Aug 11 '10 at 1:39
1 Answer
You can always use $data = pods_sanitize($data) on a value to ensure it's DB-ready.


