Jump to content

Getting data with inverted commas from sql


squiblo

Recommended Posts

Some of my data in sql have inverted commas in them, and when I try to echo them out, they kind of mess up, this is what I have tried but I am obviously doing something wrong. Thanks

 

htmlspecialchars(stripslashes(mysql_real_escape_string($row['surname'])));

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.