<%
dsn="DBQ=" & Server.Mappath("md.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};"
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open dsn
Set billboardRec = Server.CreateObject("ADODB.Recordset")
billboardRec.Open "select * from billboard order by id", objConn, 1, 2
while not billboardRec.EOF
%>
|
<% if billboardRec("leftLogo") <> "" then %>
<% else %>
<% end if %>
|
<% if billboardRec("rightLogo") <> "" then %>
<% else %>
<% end if %> |
|
<%
billboardRec.moveNext
wend
billboardRec.close
set billboardRec = nothing
set objConn = nothing
%> |