Individuals seeking Blue Heelers |
|||||
|
|
|||||
| <% Dim strSQL, cval, bkcolor, str, fontcolor If Request("SeekingName") <> "" Then Call AddListing End If Const adOpenKeyset = 1 Const adLockPessimistic = 2 Const adCmdText = &H0001 Const intFontSize = 2 dim strDBpath if Request.ServerVariables("SERVER_NAME") = "csserver" Then strDBpath = "\blueheelers\dbs\dogs.mdb" else strDBpath = "\dbs\dogs.mdb" end if strSQL = "SELECT * FROM tblDogsSeeking ORDER BY [DateAdded] DESC" Set rst = Server.CreateObject("ADODB.Recordset") With rst .Open strSQL, _ "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(strDBpath) & ";", adOpenKeyset, adLockPessimistic, adCmdText if rst.recordcount = 0 then response.write "No records found. Click 'Add a Listing' to add a record." else %> | |||||
All pictures are copyrighted and may not be used without the photographers permission.