Sqllite error


#1

I am using ionic Framework and trying to insert records into it and got syntax Error.

I found that i am getting Like in my string i am getting

your’s which is causing me syntax error.

I have also tried following code before inserting into db.

category_name =category_name.replace("’", “’’”);
Which is also not working

Any idea?


#2

Hi,

Can you post the SQLite error and your code plz ?


#3

We need to use Escape before saving into database. i solved this.