// DETERMINE IF SHOWDATE IS OLD OR NEW if ($ShowDate = "") then ShowDate = NewShowDate end if if ShowDate <> "" then 'Connect to Database strConnStr = "Provider=SQLOLEDB.1;Data Source=myhost;UID=myuser;PWD=mypwd" set rs = Server.CreateObject("ADODB.RecordSet") strSQL = "SELECT * FROM tbl_shnlist WHERE ShowDate = '" & ShowDate & "'" rs.Open strSQL, strConnStr ' Get Data from Database RecordSet if not rs.BOF and not rs.EOF then ShowDate = rs("ShowDate") Band = rs("Band") Venue = rs("Venue") Audio = rs("Audio") Shn = rs("Shn") Online = rs("Online") Notes = rs("Notes") end if ' Close Database Connection rs.Close else end if ?>
|