Page 1 of 1

Insert Text with apostrophies

Posted: Tue Jun 06, 2006 9:41 pm
by mistux
I have the following query that does not work when the text that is past to it from a form has apostropies, or pound signs, or other kinds of characters in the '$new_url' or the $new_note'.

Code: Select all

(!mysql_query( "insert into onmylist_person (username, person, notes) values ('$valid_user', '$new_url', '$new_note')"))


What do I need to do to it to make it work?

Thanks.

Posted: Tue Jun 06, 2006 9:42 pm
by feyd