Click here to Skip to main content
15,936,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i want to give the database connection between the html and the Ms Acces database how to achieve this, please give me the solution for this.. i need urgently
Updated 14-Feb-20 5:25am

Please see my previous answer on similar topic

how to give database connection in HTML[^]
Share this answer

set conn=Server.CreateObject("ADODB.Connection")
conn.Open "c:/webdata/northwind.mdb"

set rs=Server.CreateObject("ADODB.recordset")
sql="SELECT Companyname, Contactname FROM Customers
WHERE CompanyName LIKE 'A%'"
rs.Open sql, conn

<table border="1" width="100%">
  <%for each x in rs.Fields
    response.write("<th>" & & "</th>")
  <%do until rs.EOF%>
    <%for each x in rs.Fields%>

Share this answer
Richard Deeming 14-Feb-20 11:27am    
That's "classic" ASP, not HTML.

And it was a "dead" technology even when this question was posted. It's certainly not something anyone should be using today.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900