Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php \通过表单将链接上载到db时添加_Php_Mysql_Html - Fatal编程技术网

Php \通过表单将链接上载到db时添加

Php \通过表单将链接上载到db时添加,php,mysql,html,Php,Mysql,Html,希望你能帮我。在我的“添加产品”页面的一个字段中,我有一个广告商链接到他的产品。它基本上是一个链接,一个按钮将客户引导到该链接 这是我在现场上传的内容: <a target='_blank' href='http://click.linksynergy.com/fs-bin/click?id=3qM*AG8K6Qo&offerid=146141.3706263&type=2&subid=0'><img border="0" src='style/buyn

希望你能帮我。在我的“添加产品”页面的一个字段中,我有一个广告商链接到他的产品。它基本上是一个链接,一个按钮将客户引导到该链接

这是我在现场上传的内容:

<a target='_blank' href='http://click.linksynergy.com/fs-bin/click?id=3qM*AG8K6Qo&offerid=146141.3706263&type=2&subid=0'><img border="0" src='style/buynowbutton.png' width='138' height='20'><a/>
这就是db的最终结果:

<a target=\'_blank\' href=\'http://click.linksynergy.com/fs-bin/click?id=3qM*AG8K6Qo&offerid=146141.3706263&type=2&subid=0\'><img border=\"0\" src=\'style/buynowbutton.png\' width=\'138\' height=\'20\'><a/>
我怎样才能阻止这种事情发生


任何帮助都将不胜感激

,因为这会自动生成字符串 ,您如何使用DB改进您的工作

使用和输出时:

print htmlspecialchars(stripslashes($text));