home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
221.214.14.186
/
221.214.14.186.tar
/
221.214.14.186
/
common
/
price.asp
< prev
next >
Wrap
Text File
|
2010-11-01
|
1KB
|
34 lines
<%sub query2table(inputquery)
set conn=server.createobject("ADODB.connection")
conn.open("Provider=SQLOLEDB.1;Server=80.0.0.127;Database=sdxnw1;UID=sdxnwread;pwd=DSread17@8408;")
set rstemp=conn.execute(inputquery)
howmanyfields=rstemp.fields.count -1
%>
íííí
<table border=0>
<%do while not rstemp.eof%>
<tr>
<% for i = 0 to howmanyfields
thisvalue=rstemp(i)
If isnull(thisvalue) then
thisvalue=""
end if
%>
<td valign=top><%=thisvalue%></td>
<%next%>
</tr>
<%rstemp.movenext
loop
%>
<%response.flush%>
</table>
<%
rstemp.close
set rstemp=nothing
conn.close
set conn=nothing
end sub
%>