如何使用html连接到数据库 [英] How to connect to a database using html

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

问题描述

我正在开发一个网站,我想访问一个数据库,用于从数据库创建用户身份验证系统,我现在应该使用的是我只用html和css开发

解决方案

您没有使用HTML连接到数据库。您需要一些能够与数据库通信的编程语言,例如C#。



例如看看本教程连接到ASP.NET中的数据库 [ ^ ]或如何将SQL数据库连接到您的C#程序,初学者的教程 [ ^ ]


检查出来:如何创建安全PHP和MySQL中的登录脚本 [ ^ ]

了解详情:简介到3层架构 [ ^ ]


你不能直接连接到数据库..你需要让Jquery调用Service ..服务将进行数据库身份验证并将结果返回给html ..

I am developing a website and i want to access to a database for creating user authentication system from database for that what i should use now i am developing only with html and css

解决方案

You don't connect to the database using HTML. You need some programming language capable of communicating with the database, for example C#.

For example have a look at this tutorial Connecting to Databases in ASP.NET[^] or How to connect SQL Database to your C# program, beginner's tutorial[^]


Check this out: How to Create a Secure Login Script in PHP and MySQL[^]
Read more: Introduction to 3-Tier Architecture[^]


you cannot directly connect to database .. you need to have Jquery call to Service.. Service will do the database authentication and return the result to html..


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

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