% cne="driver={Microsoft Access Driver (*.mdb)};" & _ "dbq=" & Server.MapPath("spo.mdb") Set cn=Server.CreateObject("ADODB.Connection") cn.Open cne f=request("f") sql1="SELECT count(*) as t from baza where (publ=1) and (zay=1); " sql2="SELECT count(*) as t from baza where (publ=1); " sql="SELECT (baza.id) as id,(baza.mater) as m,(baza.plan) as m1,(baza.zay) as z,(baza.itog2) as i2,(baza.itog1) as i1,(baza.dat) as d, baza.publ, baza.fio, baza.obr, baza.kurs, (region.nam) as t, (spec.kod) as k, (spec.nam) as s FROM (baza INNER JOIN region ON baza.id_reg = region.id_reg) INNER JOIN spec ON baza.id_sp = spec.id_gr where (baza.publ=1) and (baza.fio like '"&f&"%') order by baza.fio;" Set rs1=cn.Execute(sql) Set rs2=cn.Execute(sql1) Set rs3=cn.Execute(sql2) 'response.write f %>
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
214018 г. Смоленск, пр-т Гагарина, 56. Тел./факс: (4812) 55-38-18. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||