%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% ' FileName="Connection_ado_conn_string.htm" ' Type="ADO" ' DesigntimeType="ADO" ' HTTP="true" ' Catalog="" ' Schema="" Dim MM_FarmConn_STRING 'MM_FarmConn_STRING = "Driver={SQL Server};Server=[connection info] MM_FarmConn_STRING = "Driver={SQL Server};Server=[connection info] %> <% Dim rsPhotoGallery__MMColParam rsPhotoGallery__MMColParam = "1" If (Request.QueryString("ProjectsID") <> "") Then rsPhotoGallery__MMColParam = Request.QueryString("ProjectsID") End If %> <% Dim rsPhotoGallery Dim rsPhotoGallery_numRows Set rsPhotoGallery = Server.CreateObject("ADODB.Recordset") rsPhotoGallery.ActiveConnection = MM_FarmConn_STRING rsPhotoGallery.Source = "SELECT * FROM dbo.ProjectsTbl WHERE ProjectsID = " + Replace(rsPhotoGallery__MMColParam, "'", "''") + "" rsPhotoGallery.CursorType = 0 rsPhotoGallery.CursorLocation = 2 rsPhotoGallery.LockType = 1 rsPhotoGallery.Open() rsPhotoGallery_numRows = 0 %> <% Dim rsPictures__MMColParam rsPictures__MMColParam = "1" If (Request.QueryString("ProjectsID") <> "") Then rsPictures__MMColParam = Request.QueryString("ProjectsID") End If %> <% Dim rsPictures Dim rsPictures_numRows Set rsPictures = Server.CreateObject("ADODB.Recordset") rsPictures.ActiveConnection = MM_FarmConn_STRING rsPictures.Source = "SELECT * FROM dbo.PicturesTbl WHERE ProjectID = " + Replace(rsPictures__MMColParam, "'", "''") + "" rsPictures.CursorType = 0 rsPictures.CursorLocation = 2 rsPictures.LockType = 1 rsPictures.Open() rsPictures_numRows = 0 %> <% Dim HLooper1__numRows HLooper1__numRows = -3 Dim HLooper1__index HLooper1__index = 0 rsPictures_numRows = rsPictures_numRows + HLooper1__numRows %>
![]() |
![]() |
||||||||||||||||||||
|
|