Haidar
04-23-2010, 11:28 AM
Hey!
Trying to access information from database with this code, i have hardly tried to fix it but it wont work. Someone who can helps? :confused:
<%
DIM objConn
Set objConn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("database.mdb")%>
objConn.Open
DIM mySQL
mySQL = "SELECT * FROM myCustomers"
DIM objRS
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open mySQL, objConn
%>
<% Response.Write objRS("Username") %>
<%
objRS.Close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
%>
Trying to access information from database with this code, i have hardly tried to fix it but it wont work. Someone who can helps? :confused:
<%
DIM objConn
Set objConn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("database.mdb")%>
objConn.Open
DIM mySQL
mySQL = "SELECT * FROM myCustomers"
DIM objRS
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open mySQL, objConn
%>
<% Response.Write objRS("Username") %>
<%
objRS.Close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
%>