<%
sub= " order by c1"
SQL="select * from Table where c1='"&b1&"' " & sub
Set rs= GetSQLserverRecordset( conn, SQL)
' remark: it is not GetSQLserverStaticRecordset
' remark: so do not use rs.AbsolutePosition=n
%>
<% =rs("c2") %>
---------example 2 ---------------
<%
If rs.EOF Then <---- in case nothing
else
rs.MoveFirst
while Not rs.EOF
response.write rs("cX")
rs.MoveNext
Wend
End if
%>
Example Result:
display c2 data .....[ the first row list data ]
--------example 2 --------------
list all
..
...
...
[ 7/29/2010 ]
www learning school add more scripts
and tips memo