I have very strange problem.
I have an HTML post from which is sending data to MySQL database. Here is my HTML from:
<form action="update_video_ads.php" method="post">
<textarea name="code" style="width:400px;height:100px;">[adminblk.code;block=table]</textarea>
<input type="submit" value="Update Information" name="submit">
</form>
When i type normal characters like ASDASDAS GASDG SDAD
and hit submit it's updating the MySQL table, but the problem comes when i try to submit text in the textarea like this <img src="asdasdas.jpg">
Here is my PHP part of code:
$turn = addslashes($_POST["turn"]);
$seconds = addslashes($_POST["seconds"]);
$code = $_POST["code"];
$register_sql="UPDATE videoads SET `enabled`='$turn',`seconds`='$seconds',`code`='".mysql_real_escape_string($_POST["code"])."' WHERE id='1'";
$insertAccount = mysql_query($register_sql);
So why i can not Update the field when i type special characters? When i type normal message it's working okey.
My DB table code
is setted to text
formation.
Thanks in advance!