I want to submit a text area where user can enter anything or any special characters with the same text format as user input into the text area. Like spaces, new line and tab at the start of the new line. I have one the below codes but when the user input contain ',",(,) it showing the sqlquery error. Please let me know how to insert text like forum into the database.
html is
<textarea class="noticearea" name="notice_area" id="notice_area" ></textarea>
php is
$noticeinsert = mysql_query("INSERT INTO notice_board(notice_id, notice_area, notice_dnt) VALUES ('$notice_id', '$notice_area', '$notice_dnt')");
please let me know how to submit any enter value into the database. Also, is it safe to send html or php codes or speicial char entered by users into database ?