"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Thanks, fixed it by using the numeric character entity for "&" followed by "#39;".
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
argh... it doesn't appear to be working... or at least, when i the entry is updated into the database, it throws this error (where "test as's" is what i entered to see if it was working):
test as'sYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's', '2006-11-16 01:11:44')' at line 13test as'sYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's', '2006-11-16 01:11:44')' at line 13
You'll need to escape any quotes before using the value in a query. If using mysql, use the mysql_real_escape_string() function, otherwise use addslashes().
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks