Jump to content

How to allow ' in insert into DB


jjmusicpro

Recommended Posts

Umm, seems mssql does have a built in escape function like mysql. You'll have to escape your quotes using addslashes instead. You may need to use stripslashes when you get data out of your mssql database.

 

Alternatively you could convert all quotes to their HTML equivalent using htmlentities along with the ENT_QUOTES flag.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.