Click to See Complete Forum and Search --> : Need help with programme!!!


aussie_newbe
11-02-2006, 08:45 AM
I have not used asp before and find I am getting problems with opening a database. The error appears to be in the path that is located in the programme.

<%
set conn=Server.CreateObject("ADODB.Connection")
fpath="DBQ="&server.mappath("/classifieds.mdb")
dpath="Driver={Microsoft Access Driver (*.mdb)};"
conn.Open dpath&fpath
set rs=Server.CreateObject("ADODB.Recordset")
%>

My website is located at:
http://b.domaindlx.com/advanceglobal/

As I am not familiar with ASP, I do not know how the pathing works.

Please will someone help me?

russell
11-02-2006, 09:37 AM
pathing is relative to the root if a leading slash is used (the right way to do it). /classifieds.mdb means that the mdb file is located in the root of site.

aussie_newbe
11-03-2006, 05:08 AM
Thanks for your assistance. So from what you are saying if I put as an e.g. /classifieds.mdb as follows: ("/classfied.mdb") that should work? Tried this no success. I maybe tolally wrong but wouldn't I have to specify the website information as well?

Chris