Posted by Rik on 03/13/07 22:19
G-Rod <futbolguy@gmail.com> wrote:
> I seem to have figured out what my error was. It doesn't like an
> apostrophe in the middle of one of my variables.
>
> How do you insert something like "George's" into a field? Is there a
> remove apostrophe's function?
You want to escape (among others) the ', by using
mysql_real_escape_string() on _all_ data added to the query.
--
Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel
Navigation:
[Reply to this message]
|