Hi there,
I got this problem which i need to display out in the menu list box.
Below is the coding for my program:
<%
Dim rs,dbConn, sqlCode
Set dbConn=Server.CreateObject("ADODB.Connection") dbConn.Open "DSN=walao;UID=aaa;PWD=aaa"
sqlCode="Select location as lo FROM transport where locationName = 'Dim Park'"
set rs=dbConn.Execute(sqlCode)
%><select name="try">
<%do while not rs.EOF%>
<option><%=rs("lo")%></option>
<%
rs.movenext
loop
rs.close
%>
</select>
Actually the prob is that it can stop loading the page and later run time error will come out.
I was thinking whether anyone out there can show me the way for me to list out all the data in the database into the menu list box.
Thanx