Arkadaşlar Merhaba
ilan sitemde ilan noya göre arama yapmak istiyorum aşağıdaki kodlarda ilanın id sine göre arama yaptıramadım yardımlarınızı bekliyorum
saygılar


ilan tablom

id----baslik----tip----il----ilce----fiyat


ara.asp
<form Action="ara.asp" Method="get">
Ilan No Arama :
<input name="id" type="text" id="id"/>
<input type="Submit" Value="Ara" />
</form>


sonuc.asp

<%
ara=Request.Querystring("id")

Set baglanti=Server.Createobject("Adodb.Connection")
baglanti.provider="Microsoft.Jet.Oledb.4.0"
baglanti.open Server.Mappath("data.mdb")

sql="select * from ilan where id = '"&ara&"'"
Set rs=baglanti.execute(Sql)

if rs.eof then
response.write "Kayit Bulunamadi !!!"
else
do while not rs.eof
with response
.write rs("baslik")&" "&rs("tip")
.write "<hr>"
end with
rs.movenext:loop
end if
%>