ChristianX
Programmer
Good evening all,
i am stil having persisting problems in trying to
figure out how to create a drop down box that gets its
contents from a database table.
the table i have is called Book: BookID, Title, Publisher
What i want to do is create a drop down box that gets all the
titles from the Book table and put them in the drop down.
Ive only started learning ASP since monday so go easy on me guys!
heres the code ive tried to write so far:
<!--#include file="Clssfd.asp"-->
<html>
<head>
<title>Dynamic Drop-Down Menu</title>
</head>
<body>
<%
Dim rsBook
Set rsBook = Server.CreateObject("ADODB.Recordset"
rsBook.Open "Book", objConn, adOpenForwardOnly, adLockOptimistic, adCmdTable
Do while not rsBook.EOF
Response.write "<OPTION value= "" & Title & ""></OPTION>"
rsBook.MoveNext
Loop
%>
</body>
</html>
i am stil having persisting problems in trying to
figure out how to create a drop down box that gets its
contents from a database table.
the table i have is called Book: BookID, Title, Publisher
What i want to do is create a drop down box that gets all the
titles from the Book table and put them in the drop down.
Ive only started learning ASP since monday so go easy on me guys!
heres the code ive tried to write so far:
<!--#include file="Clssfd.asp"-->
<html>
<head>
<title>Dynamic Drop-Down Menu</title>
</head>
<body>
<%
Dim rsBook
Set rsBook = Server.CreateObject("ADODB.Recordset"
rsBook.Open "Book", objConn, adOpenForwardOnly, adLockOptimistic, adCmdTable
Do while not rsBook.EOF
Response.write "<OPTION value= "" & Title & ""></OPTION>"
rsBook.MoveNext
Loop
%>
</body>
</html>