title: how to replace all the single quotes to \' for a mysql query
body: <p>I have made a simple query using nodejs and mysql. The issue is whenever the user inputs product details containing any single quote an error occurs. How do i replace or remove such error.</p>