I am trying to update a field in a database, with something from another table, the value of the data is in HTML for. Like this.
<table width='436' height='139' border='0' cellspacing='0' cellpadding='0' class='tableBorder'>
<style>
.tableBorder {
border-top: 1px dashed #000000;
border-bottom: 1px dashed #000000; etc....
Here is my query:
$query = "SELECT template_coupon_layout FROM template_coupons WHERE template_coupon_id= '$templatecouponid' ";
$result = mysql_query($query);
while ($row = mysql_fetch_array($result)){
$templatecouponlayout = $row["template_coupon_layout"];
}
$query1 = "UPDATE recommend SET $couponplacement='".$templatecouponlayout."' WHERE catagory='$catagory$subcatagory'";
print $query1."<br />";
$result1 = mysql_query($query1) or die(mysql_error());
I want to know how to make it insert it without paying attention to the html tags and ' s.
Thanks in advance.