Search code examples
phpmysqlspecial-charactersfeedhtmlspecialchars

how to remove special characters (ex:Montréal-Rive-Sud) from mysql databse


how to remove special characters

Montréal-Rive-Sud

the above one is city name this i'm getting from xml feeds. It is directly inserting into my mysql database. now i want to remove this kind of special characters.


Solution

  • You need the mysql_real_escape_string()

    More info