如何使用JavaScript访问Access数据库? [英] How to access an Access database using JavaScript?

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

问题描述

我必须通过我的网站显示我的学生的标记。使用 Microsoft Access 创建数据库。

I have to display marks of my students through my site. The database is created using Microsoft Access. How can I display the marks of each student in a table, as they enter the registration number?

推荐答案

为什么要输入每个学生的标记?使用Javascript?它运行在网站的访问者的浏览器中,即使有一种方法让它直接访问数据库(没有),这将是一个可怕的安全风险,因为它必须包含数据库密码,以便网站的每个访问者可以获得对数据库的完全访问。

Why do you want to use Javascript? It runs in the browser of the site's visitors, and even if there were a way to have it directly access a database (which there isn't), it would be a horrible security risk, since it would have to contain the DB password, so that each visitor of the site could get full access to the DB.

您需要的是在服务器上运行并访问数据库以将不同的页面传递到访问者取决于在HTML表单中输入的数据。用于此的典型语言是PHP,Perl,Ruby或ASP。

What you need is something that runs on the server and accesses the DB to deliver different pages to the visitor depending on data entered in an HTML form. Typical languages used for this are PHP, Perl, Ruby or ASP.

另外请注意,MS Access是一个非常糟糕的选择,作为一个Web应用程序的DB后端,因为它不支持来自不同用户的并发访问。

Also note that MS Access is a very poor choice as a DB backend to a web app since it does not support concurrent access from different users.

总而言之,您需要比本网站更直接的帮助;请尝试在您所在的地区寻找网络应用专家。

All in all it looks like you need more direct help than this site can provide; try finding a web app specialist in your area.

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

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