%@ Language=VBScript %> <%session.lcid=2057 'Format Date DD/MM/YYYY%> <% ' Set Up our Database connection via DSNLess Connection ' You May be able to use Server.MapPath for you connection ' Or alternatively connect via ODBC, Please contact your ' Hosting provider for more information ' Dimension our Variables for the Dabase Connection dim objConn, strCon, objRS, strSQL Set objConn = Server.CreateObject("ADODB.Connection") '************************************* ' CHANGE THE FOLLWING DATA SOURCE ' PATH TO POINT TO WHERE YOU HAVE ' PLACED THE NewsCMS DATABASE '************************************* 'strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\ootweb\longranger\news\NewsCMS.mdb" strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Domains\thelongranger.com.au\wwwroot\news\NewsCMS.mdb" objConn.connectionstring = strCon objConn.Open Set objRS = Server.CreateObject("ADODB.Recordset") ON ERROR RESUME NEXT Dim pageView, strNewsText ' See what view the User is requesting pageView=Request.Querystring("view") %>
|
| ||||||
|