Hello,
I am writing a news script that stores news items in a mysql database, and then posts those items on a html page.
I am using html forms for input, the problem I am running into is that if a user types a single quote (') the text will not go into the database. So, i added this line of code
$message = ereg_replace("'", "''",$message);
To double up on the quotes so they will post properly. This works for one message, if the next user tries and input a message with single quotes thatnew message will over write the old one, but the remaining news entries will not update (ie. push down off the screen)
It's hard to explain. Any ideas on what could be causing this?
Thanks in advance.