|
Thanks Chris but unfortunatly its not working, and I suspect GoDaddy is the cause !! I contacted support and they will not assist with 3rd party apps, and they sent me some example code to use, which worked, however trying to open that same code in Dreamweaver was fruitless. I don't understand why I can't develop my ASP pages in Dreamweaver for GoDaddy !
Below is an example of both codes in case somone can work out a way to mix the two successfully !
GoDaddy/Host:
<%
Dim oConn, oRs
Dim qry, connectstr, sDSNDir
Dim db_name, db_username, db_userpassword
Dim db_server, dsn_name
dsn_name = "access_MyData.dsn"
fieldname = "link"
tablename = "qrylinks"
sDSNDir = Server.MapPath("_dsn")
connectstr = "filedsn=" & sDSNDir & "/" & dsn_name
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open connectstr
qry = "SELECT * FROM " & tablename
Set oRS = oConn.Execute(qry)
if not oRS.EOF then
while not oRS.EOF
response.write ucase(fieldname) & ": " & oRs.Fields(fieldname) & " "
oRS.movenext
wend
oRS.close
end if
Set oRs = nothing
Set oConn = nothing
%>
Last edited by CMitch07 : 01-14-2008 at 10:46 PM.
Reason: Incorrect text
|