%
Server.ScriptTimeout = 30
edutype = Request.QueryString("Type")
if edutype = "" then
sqlMake="Select distinct EduType from educationdetails"
set oRs = Server.CreateObject ("ADODB.RecordSet")
Set con = Server.CreateObject ("ADODB.Connection")
con.open "DSN=sdancer3"
oRs.Open sqlMake,con,0,1
end if
%>
South Shields Sanddancers - Education Listings (Schools, Colleges and Community Venues)
"
r=r+1
if r mod 8 = 0 and not oRs.EOF then response.write "
"
oRs.movenext
wend
response.write "
"
end if
response.write "
"
'ends edutype = ""
end if
if edutype <> "" then
sqlMake="Select M.SiteName, M.Telephone, M.Fax, M.Address1, M.InCharge, M.Town, M.Postcode, MA.EduType, MA.WebsiteAddress, MA.EmailAddress, MA.Description, MA.ImageFileName, MA.Premium from Education AS M LEFT JOIN EducationDetails AS MA ON M.SiteName = MA.SiteName where EduType ='" & edutype & "' order by MA.Premium,M.SiteName"
set oRs = Server.CreateObject ("ADODB.RecordSet")
Set con = Server.CreateObject ("ADODB.Connection")
con.open "DSN=sdancer3"
oRs.open sqlMake,con,0,1
response.write "" & edutype & "