riporto tutte le connessioni al database:
file inc_db_setup.asp
codice:
<%
' This section of code sets the server up to read the Access database
' and opens the connection to the file in the relativePath set in the
' user_config.asp file.
'Create an ADO connection object
Set adoCon = Server.CreateObject("ADODB.Connection")
'Set an active connection to the Connection object using a DSN-less connection
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("mdb-database/r4e.mdb")
'Create an ADO recordset object
Set rsCategories = Server.CreateObject("ADODB.Recordset")
Set rsEntries = Server.CreateObject("ADODB.Recordset")
Set rsComments = Server.CreateObject("ADODB.Recordset")
' End of server set up
'-----------------------------------------------------------------------'
%>
file user_config.asp
codice:
<%
' Setup
siteName="Nome sito" ' This will be displayed on the top of all pages on your site.
virtualPath="/mdb-database/r4e.mdb" ' This is the part after "http://www.yoursite.com"
homepageURL="http://www.miosito.it"
%>