如何替换数据库中的引号

My problem is that when user enter any text which has "quotes" then it does not display data after the first ". So i used str_replace function like this

str_replace('"', "“", $courseName)

and in this i replaced that " with the (MS-word quote) and this work correctly. Now the problem is that i have a large number of text fields and i have to apply this code on the all fields so either i have to done it manually or is there available any other solution.