Jump to content

PHP MySQL: escaping all special characters


vaibhavs

Recommended Posts

Hi,

I am sure this must have been discussed many times before, but I could not get much info upon searching.

I am writing simple scripts to Add / Delete / Modify records in MySQL.

Special characters like single quotes, double quotes, back slash, front slash, dollar etc cause a havoc when interacting with MySQL.

What is the best way to handles these characters (and other characters which I have missed above) such that they are displayed correctly when viewing, adding & modifying records.

All suggestions / examples / pointers are thanked in advance.

Thx.
regards,
Vai

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.