如何将 hmtl 内容插入 DB,下面是我正在尝试但不成功的代码。任何机构都可以帮助我如何做到这一点 - :
<?php
$connect=mysql_connect("localhost","root","");
$db=mysql_select_db("send_mailer",$connect);
$msg= <<<HTMK
<html>
<body>
<table cellpadding='0' cellspacing='0' align='center'>
<tr>
<td align='center'><img src='http://d32vlg867bsa1v.cloudfront.net/z/prod/w/2/b/home-images/Sept/27092013/tops-l.jpg' /></td></tr>
<tr>
<td align='center'>
<img src='http://d32vlg867bsa1v.cloudfront.net/z/prod/w/2/b/home-images/Sept/19092013/row3-01-l.jpg' />
</td>
</tr>
<tr>
<td align='center'>
<img src='http://d32vlg867bsa1v.cloudfront.net/z/prod/w/2/b/home-images/Sept/27092013/shoes-l.jpg' />
</td>
</tr>
</table>
</body>
</html>
HTMK;
$query_1="INSERT INTO content (htmk) values ($msg)";
$result=mysql_query($query_1);
?>
DB table structure-:
1 htmk varchar(5000)