i'm actually creating a forum from scratch. To insert in my DB the message i use this:
'INSERT INTO forum_sujets VALUES("", "'.$steamprofile['personaname'].'", "'.$steamprofile['steamid'].'", "'.$_POST['titre'].'", "'.$_POST['message'].'", "'.$date.'", "'.$date.'", "'.$_GET['id'].'", "0" , "0", "0")';
But if I insert a text with a " or a ' it create error. How can i fix this ?