burningblue8
Programmer
The code I have got is the following and apart from staring at the screen for the past twenty minutes trying to figure this one out, I bet it is something simple:
All I am trying to do is populate a drop down box from a field in the db.
<font size="2"><b><font size="2" face="Verdana">Source <select id=source name=source>
<%
Set conn = server.CreateObject ("ADODB.connection"
conn.Open Session("hfr_connectionstring"
Set rs = server.createobject ("ADODB.recordset"
lssql = "select source from booking"
rs.open lssql, conn
Response.write rs.fields.count
while not rs.EOF
Response.Write "<option value = "& rs.fields(4).value & " >"
rs.movenext
wend
set rs = nothing
set conn = nothing
%>
</select>
the simple things are always the most annoying!!!
All I am trying to do is populate a drop down box from a field in the db.
<font size="2"><b><font size="2" face="Verdana">Source <select id=source name=source>
<%
Set conn = server.CreateObject ("ADODB.connection"
conn.Open Session("hfr_connectionstring"
Set rs = server.createobject ("ADODB.recordset"
lssql = "select source from booking"
rs.open lssql, conn
Response.write rs.fields.count
while not rs.EOF
Response.Write "<option value = "& rs.fields(4).value & " >"
rs.movenext
wend
set rs = nothing
set conn = nothing
%>
</select>
the simple things are always the most annoying!!!