将完整的html页面存储在数据库中 [英] store complete html page in data base

查看:1067
本文介绍了将完整的html页面存储在数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一份学生报告,我想将所有带有html的报告存储在数据库中,我们可以随时查看(完整的html表示所有html页面都存储在数据库中,并且可以通过键获取该页面).

i am making a student report and i want to store all report with html in data base and we view at any time (complete html mean all html page store in data base and we get that page with key )

推荐答案

像这样使用名为mysql_real_escape_string()的函数

Use a function called mysql_real_escape_string() like this


html_code =< p>这是内容</p>"
html_code = "<p>This is content</p>"


内容= mysql_real_escape_string(htmlspecialchars(
content = mysql_real_escape_string(htmlspecialchars(


这篇关于将完整的html页面存储在数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆