Hey Guys,
I am having a similar problem and attempted to follow this post but I was unsuccessful.
I have a local site developed in ASP with an access database which is working fine however when I uploaded it to 1and1 I realized that I should of left development to the pro's =(
I have the following script in my connection file generated in Dreamweaver MX:
<%
// FileName="Connection_odbc_conn_dsn.htm"
// Type="ADO"
// DesigntimeType="ADO"
// HTTP="false"
// Catalog=""
// Schema=""
var MM_user_logins_STRING = "dsn=user_logins;"
%>
1and1 provides the following example script.
<html>
<title>Database query using ASP</title>
<body bgcolor="FFFFFF">
<h2>Query table <b>Products</b> with ASP</h2>
<%
Set dbaseConn = Server.CreateObject("ADODB.Connection")
dbaseConn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath("\db\products.mdb") & ";"
SQLQuery = "SELECT * FROM PRODUCTS"
Set RS = dbaseConn.Execute(SQLQuery)
%>
<%
Do While Not RS.EOF
%>
<%=RS("name")%>, <%=RS("description")%>, <%=RS("price")%> DM
<p>
<%
RS.MoveNext
Loop
RS.Close
Set RS = Nothing
dbaseConn.Close
Set dbaseConn = Nothing
%>
</body>
</html>
http://faq.1and1.com/scripting_langu...atabase/2.html
I am a little bit lost and attempted the following script:
<%
// FileName="Connection_odbc_conn_dsn.htm"
// Type="ADO"
// DesigntimeType="ADO"
// HTTP="false"
// Catalog=""
// Schema=""
var MM_user_logins_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.Mappath("../db/mydb.mdb") & ";" & _
"User Id=admin;" & _
"Password="
%>
The script didn't work and I received the following Message:
Microsoft JScript runtime error '800a1391'
'_' is undefined
/Connections/user_logins.asp, line
Any direction you guys can provide would be greatly appreciated. (This script is for a login page)