如何保存完整的div段 [英] How to save full div paragraph

查看:93
本文介绍了如何保存完整的div段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在PHP中保存数据库中的整个给定段落,因为将来可以通过网站的管理面板为用户编辑。





How to save the whole given paragraph in the database in PHP, because it will be editable for the user in the future through the adminal panel of website.


<div id="para" name="graph">
<h2> It is a Example</h2>
<p>
This is the expamle.This is the expamle.This is the expamle.This is the expamle.This is the expamle.This is the expamle.This is the expamle.This is the expamle.This is the expamle.This is the expamle.This is the expamle.This is the expamle...
</p>
</div>





我尝试过的事情:



我已经厌倦了许多事情但都徒劳无功。请帮助解决这个问题。



What I have tried:

I have tired many things but all in vain. please help to solve this problem.

推荐答案

您需要学习如何使用表格: [where]



给你的段落一个id并使用javascript DOM来读取元素的内容 [这里]



你还需要一个数据库,某个地方,并能够访问它。如果它在服务器端,你可能需要php。
Either you need to learn how to use forms: [here]
or
give your paragraph an id and use the javascript DOM to read the content of your element [here]

You'll also need to have a database, someplace, and be able to access it. If it's on the server-side, you may need php.


这篇关于如何保存完整的div段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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