-4

What is best way to deal with single quotes & double quotes insert into Mysql database.? I have tried with many cases. For example:

I need to store Paesano's Temple

1. I have store same but there is problem of sting break

2. I have tried with addslashes then store in database but there is problem at a time of showing in front-end (it's showing slashes-need stripslashes on fron-end)

Nikhil Vaghela
  • 2,088
  • 2
  • 15
  • 30
Manraj
  • 205
  • 1
  • 3
  • 10

1 Answers1

0

Best way to use PDO for database operation it will take care regarding this type of query

try this link

How can I use PDO in CodeIgniter 2?

Community
  • 1
  • 1
Nandit
  • 91
  • 7