I'm adding some html code to a database through a mysql_query. So, a basic query looks like this $qry = "UPDATE Pages SET ".$column."='$value' WHERE id='$id'";
If this is called, an actual query might look like this: $qry = "UPDATE Pages SET content_en='<h1>This is a title</h1>' WHERE id='12'";
However, if the HTML code looks like this: <h1 style='color:red;'>This is a title</h1>
, it'll break the query because of the semi-colon. Is there any way to solve this?