0

I am trying to insert query with single qoute '.its break my query . e.g

INSERT INTO news (`Id`, `UserId`, `description`) VALUES (1,12,'Hello this descriptrion  and this single qoute ' in sentance');

It dose not insert and give error. so my question is whenever user enter description with single qoute e.g it's very hot today. how can i handle ' single quote in this way ?

You Answer highly Appreciate

1

1 Answer 1

1

you can do something like that :

  INSERT INTO news (`Id`, `UserId`, `description`) VALUES (1,12,"Hello this descriptrion  and this single qoute ' in sentance");
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.