Basta che usi mysql_real_escape_tring(), ci pensa questa funzione a gestire i caratteri "problematici".
Regole del Forum