arkadaşlar excelde sorgulama yapıyorum satır halde veriyor verileri alt alta alamazmıyız
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1254"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META http-equiv=Content-Type content=text/html; charset=iso-8859-9>
<META http-equiv=content-type content=text/html;charset=windows-1254>
<META http-equiv=content-type content=text/html;charset=x-mac-turkish>
<title>SINAV SONUÇLARI</title>
<style type="text/css">
<!--
body,td,th {
font-family: Tahoma, Verdana, Comic Sans MS, Arial;
font-size: 12px;
color: #666666;
}
body {
background-color: #FFFFFF;
}
.auto-style1 {
font-size: medium;
background-color: #F3CF75;
}
.auto-style2 {
text-align: left;
font-size: medium;
}
.style2 {
border-collapse: collapse;
border-style: solid;
border-width: 2px;
}
-->
</style></head>
<body><center>
<form id="form1" name="form1" method="post" action="excel.asp">
<label></label>
<p>
<table width="359" border="1" style="border-collapse:collapse "id="sorgu" cellpadding="1" cellspacing="1" bordercolor="#D2D2D2">
<tr>
<td width="248" align="center" bgcolor="#B3B8FF"><label><strong>TEL NO:</strong>
<input name="textalan" type="text" value="0" maxlength="10" />
</label></td>
<td width="69" align="center" bgcolor="#B3B8FF"><label>
<input name="Sorgula" type="submit" id="Sorgula" value="Sorgula" />
</label></td>
</tr>
</table>
<table id="table1" bordercolor="#800080" cellspacing="1" class="style2">
<tr>
<td width="10%" align="center" bgcolor="#CCD0FF"><b>ADI</b></td>
<td width="10%" align="center" bgcolor="#CCD0FF"><b>SOYADI</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>TÜR. NET</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>MAT. NET</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>DIN. NET</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>FEN. NET</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>SOS. NET</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>ING. NET</b></td>
<td width="8%" align="center" bgcolor="#CCD0FF"><b>TOPLAM NET</b></td>
<td width="7%" align="center" bgcolor="#CCD0FF"><b>PUAN</b></td>
<td width="2%" align="center" bgcolor="#CCD0FF"><b>SIRA</b></td>
<td width="29%" align="center" bgcolor="#CCD0FF"><b>AÇIKLAMA</b></td>
<td width="7%" align="center" bgcolor="#CCD0FF"><b>TC</b></td>
</tr>
<%
dim sayi
sayi= CDbl(request.form("textalan"))
response.write("<br /><b>Sorgulanan: </b><span class=""style1"">"& sayi &"</span><br /><br />")
if sayi<>"" then
'--------------------------------------------------------------------------------------------------
baglanti = "DBQ=" & Server.MapPath("xlsveri.xls") & "; DRIVER={Microsoft Excel Driver (*.xls)};"
Set baglantiobje = Server.CreateObject("ADODB.Connection")
Set kayitlarobje = Server.CreateObject("ADODB.Recordset")
baglantiobje.open baglanti
sql="select * from [Sayfa1$]"
kayitlarobje.Open sql, baglantiobje, 1,3
'----------------------------------------------------------------------------------------------------
do while not kayitlarobje.eof
if kayitlarobje("TCNO")= sayi then
%>
<tr>
<td align="center"><%=kayitlarobje("ADI")%> </td>
<td align="center"><%=kayitlarobje("SOYADI")%> </td>
<td align="center"><%=kayitlarobje("TURKCE")%> </td>
<td align="center"><%=kayitlarobje("MAT")%> </td>
<td align="center"><%=kayitlarobje("DIN")%> </td>
<td align="center"><%=kayitlarobje("FEN")%> </td>
<td align="center"><%=kayitlarobje("SOS")%> </td>
<td align="center"><%=kayitlarobje("ING")%> </td>
<td align="center"><%=kayitlarobje("TOPLAM")%> </td>
<td align="center"><%=kayitlarobje("PUAN")%> </td>
<td align="center"><%=kayitlarobje("SIRA")%> </td>
<td align="center"><%=kayitlarobje("ACIKLAMA")%> </td>
<td align="center"><%=kayitlarobje("TCNO")%> </td>
</tr>
<%
end if
kayitlarobje.movenext
loop
kayitlarobje.close
Set kayitlarobje = nothing
baglantiobje.close
Set baglantiobje = nothing
end if
%>
</table>
</form>
</center>
<p></p>
<p></p>
<p></p>
<table align="center" class="auto-style1" style="width: 1209px">
</table>
</body>
</html>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1254"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META http-equiv=Content-Type content=text/html; charset=iso-8859-9>
<META http-equiv=content-type content=text/html;charset=windows-1254>
<META http-equiv=content-type content=text/html;charset=x-mac-turkish>
<title>SINAV SONUÇLARI</title>
<style type="text/css">
<!--
body,td,th {
font-family: Tahoma, Verdana, Comic Sans MS, Arial;
font-size: 12px;
color: #666666;
}
body {
background-color: #FFFFFF;
}
.auto-style1 {
font-size: medium;
background-color: #F3CF75;
}
.auto-style2 {
text-align: left;
font-size: medium;
}
.style2 {
border-collapse: collapse;
border-style: solid;
border-width: 2px;
}
-->
</style></head>
<body><center>
<form id="form1" name="form1" method="post" action="excel.asp">
<label></label>
<p>
<table width="359" border="1" style="border-collapse:collapse "id="sorgu" cellpadding="1" cellspacing="1" bordercolor="#D2D2D2">
<tr>
<td width="248" align="center" bgcolor="#B3B8FF"><label><strong>TEL NO:</strong>
<input name="textalan" type="text" value="0" maxlength="10" />
</label></td>
<td width="69" align="center" bgcolor="#B3B8FF"><label>
<input name="Sorgula" type="submit" id="Sorgula" value="Sorgula" />
</label></td>
</tr>
</table>
<table id="table1" bordercolor="#800080" cellspacing="1" class="style2">
<tr>
<td width="10%" align="center" bgcolor="#CCD0FF"><b>ADI</b></td>
<td width="10%" align="center" bgcolor="#CCD0FF"><b>SOYADI</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>TÜR. NET</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>MAT. NET</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>DIN. NET</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>FEN. NET</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>SOS. NET</b></td>
<td width="5%" align="center" bgcolor="#CCD0FF"><b>ING. NET</b></td>
<td width="8%" align="center" bgcolor="#CCD0FF"><b>TOPLAM NET</b></td>
<td width="7%" align="center" bgcolor="#CCD0FF"><b>PUAN</b></td>
<td width="2%" align="center" bgcolor="#CCD0FF"><b>SIRA</b></td>
<td width="29%" align="center" bgcolor="#CCD0FF"><b>AÇIKLAMA</b></td>
<td width="7%" align="center" bgcolor="#CCD0FF"><b>TC</b></td>
</tr>
<%
dim sayi
sayi= CDbl(request.form("textalan"))
response.write("<br /><b>Sorgulanan: </b><span class=""style1"">"& sayi &"</span><br /><br />")
if sayi<>"" then
'--------------------------------------------------------------------------------------------------
baglanti = "DBQ=" & Server.MapPath("xlsveri.xls") & "; DRIVER={Microsoft Excel Driver (*.xls)};"
Set baglantiobje = Server.CreateObject("ADODB.Connection")
Set kayitlarobje = Server.CreateObject("ADODB.Recordset")
baglantiobje.open baglanti
sql="select * from [Sayfa1$]"
kayitlarobje.Open sql, baglantiobje, 1,3
'----------------------------------------------------------------------------------------------------
do while not kayitlarobje.eof
if kayitlarobje("TCNO")= sayi then
%>
<tr>
<td align="center"><%=kayitlarobje("ADI")%> </td>
<td align="center"><%=kayitlarobje("SOYADI")%> </td>
<td align="center"><%=kayitlarobje("TURKCE")%> </td>
<td align="center"><%=kayitlarobje("MAT")%> </td>
<td align="center"><%=kayitlarobje("DIN")%> </td>
<td align="center"><%=kayitlarobje("FEN")%> </td>
<td align="center"><%=kayitlarobje("SOS")%> </td>
<td align="center"><%=kayitlarobje("ING")%> </td>
<td align="center"><%=kayitlarobje("TOPLAM")%> </td>
<td align="center"><%=kayitlarobje("PUAN")%> </td>
<td align="center"><%=kayitlarobje("SIRA")%> </td>
<td align="center"><%=kayitlarobje("ACIKLAMA")%> </td>
<td align="center"><%=kayitlarobje("TCNO")%> </td>
</tr>
<%
end if
kayitlarobje.movenext
loop
kayitlarobje.close
Set kayitlarobje = nothing
baglantiobje.close
Set baglantiobje = nothing
end if
%>
</table>
</form>
</center>
<p></p>
<p></p>
<p></p>
<table align="center" class="auto-style1" style="width: 1209px">
</table>
</body>
</html>
Son düzenleme: