> where my $content value is osmethign like this.
> "Step 1: Access the homepage
> Step 2: type in your username under the field 'username' "
> and after the addslashes funciton there would be \ around the 'username'
> like this..
> \'username\'....and now after running this program I got an error message:
> Warning: MS SQL message: Line 14: Incorrect syntax near 'username'.
> (severity 15) in
> on line 119

I think you need to replace ' with '' in MSSQL (one single quote replaced
with two single quotes)

$text = str_replace("'","''",$old_text);

---John Holmes...

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to