{"id":8,"date":"2009-03-27T02:03:00","date_gmt":"2009-03-27T02:03:00","guid":{"rendered":"http:\/\/www.codeboss.in\/web-funda\/?p=7"},"modified":"2009-03-27T02:03:00","modified_gmt":"2009-03-27T02:03:00","slug":"mysql-single-and-double-quotes-insertion","status":"publish","type":"post","link":"https:\/\/codeboss.in\/web-funda\/2009\/03\/27\/mysql-single-and-double-quotes-insertion\/","title":{"rendered":"MySQL single and double quotes insertion"},"content":{"rendered":"<p>More than often while inserting some description into MySQL from a form input one faces a &#8216;single and double quote&#8217; problem. For example while inserting the following text &#8211; <\/p>\n<p>I have both &#8216; and  &#8221; quotes in my description<\/p>\n<p>To make the text safe for a MySQL insertion parse it with <span style=\"font-weight:bold;\">mysql_real_escape_string()<\/span><\/p>\n<p>That would make it MySQL safe and would insert the correct text.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>More than often while inserting some description into MySQL from a form input one faces a &#8216;single and double quote&#8217; problem. For example while inserting the following text &#8211; I have both &#8216; and &#8221; quotes in my description To make the text safe for a MySQL insertion parse it with mysql_real_escape_string() That would make&hellip; <a class=\"more-link\" href=\"https:\/\/codeboss.in\/web-funda\/2009\/03\/27\/mysql-single-and-double-quotes-insertion\/\">Continue reading <span class=\"screen-reader-text\">MySQL single and double quotes insertion<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[56,57],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-mysql","tag-php","entry"],"_links":{"self":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":0,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"wp:attachment":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}