Acil Asp Veritabanı Yardımı

Kodla Büyü

Sezgin_blk

Üye
Mesajlar
29
Veritabanı Oluşturdum Kayıt Ekleyip Silebiliyorum, Fakat veritabanından kayıt çekemiyorum.yardım ederseniz.sevinirim,şimdiden teşekkürler.
 
ben veritabanını oluşturdum yolu dbb/veritabanim.mdb
içindeki tablo adı bilgilihoca
id otamatik ad ise metin olarak 2 sutun var.o halde kod ;

<% Set con=Server.CreateObject("ADODB.Connection")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("dbb/veritabanim.mdb")%>

<% set testhepsi=server.CreateObject("ADODB.recordset")
sql70="select * from bilgilihoca"
testhepsi.open sql70,con,1,3
%>

<% if not testhepsi.eof then %><br><br>
<table width="200" border="1">
<% testhepsi.movefirst
do until testhepsi.EOF
%>
<tr>
<td><a href="anasayfa.asp?islem=testsonuc2&soyad<%=testhepsi("ad")%></a></td>
</tr>
<% testhepsi.movenext
loop %>
</table>
<% else %><br>
<table width="200" border="0">
<tr>
<td><div align="center" class="style6">Kayit Yok.</div></td>
</tr>
</table>
<% end if %>

olması gerekmez mi???fakat çalışmadı
 
sisyphem' Alıntı:
Şu şekilde dener misiniz? Bir de ürettiği hata ne onu ekelrseniz iyi olur.

Kod:
<% Set con=Server.CreateObject("ADODB.Connection")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("dbb/veritabanim.mdb")%>

<% set testhepsi=server.CreateObject("ADODB.recordset")
sql70="select * from bilgilihoca"
testhepsi.open sql70,con,1,3
%>

<% if not testhepsi.eof then %><br><br>
<table width="200" border="1">
<% testhepsi.movefirst
do until testhepsi.EOF
%>
<tr>
<td><%=testhepsi("ad")%></td>
</tr>
<% testhepsi.movenext
loop %>
</table>
<% else %><br>
<table width="200" border="0">
<tr>
<td><div align="center" class="style6">Kayit Yok.</div></td>
</tr>
</table>
<% end if %>

bu kodlar doğru gibi ama bii yerde hata var galiba...
 
Bir de böyle denermisiniz hocamm..



<% Set con=Server.CreateObject("ADODB.Connection")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("dbb/veritabanim.mdb")%>

<% set testhepsi=server.CreateObject("ADODB.recordset")
sql70="select * from bilgilihoca"
testhepsi.open sql70,con,1,3
%>

<% if testhepsi.eof then %><br><br>
<table width="200" border="1">
<tr>
<td>Kayıt yok</td>
</tr>
<% else
do while testhepsi.EOF
%>
<tr>
<td><%=testhepsi("ad")%></td>
</tr>
<% testhepsi.movenext
loop

end if

%>
</table>
 
BBNET
Geri
Üst