html中的数据库连接 [英] database connection in html

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

问题描述

如何在html中连接数据库

解决方案

它不能用HTML完成,但可以在JavaScript中完成,不推荐使用。 JavaScript完全对客户端开放,这将使数据库通信完全不安全。您可以使用任何服务器端技术,例如基于ASP.NET,Prolog,PHP或其他任何技术。



-SA


HTML是标记语言,基本上它们是像< html>,< body>这样的标记集,用于使用css和javascript作为整体呈现网站。所有这些都发生在客户端系统或您将浏览网站的用户身上。



现在,连接到数据库,发生在另一个层面。它发生在服务器上,这是托管网站的地方。



因此,为了连接数据库并执行各种数据相关的操作,你必须使用服务器侧面脚本,如php,jsp,asp.net等。



来源: http://stackoverflow.com/a/10467388 [ ^ ]

how to connect database in html

解决方案

It cannot be done in HTML, but possible in JavaScript, which is not recommended. JavaScript is totally open to the client side, which would make database communications utterly unsafe. You can use any of the server-side technologies, for example based on ASP.NET, Prolog, PHP or anything else.

—SA


HTML are markup languages, basically they are set of tags like <html>, <body>, which is used to present a website using css, and javascript as a whole. All these, happen in the clients system or the user you will be browsing the website.

Now, Connecting to a database, happens on whole another level. It happens on server, which is where the website is hosted.

So, in order to connect to the database and perform various data related actions, you have to use server-side scripts, like php, jsp, asp.net etc.

Source: http://stackoverflow.com/a/10467388[^]


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

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