» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > ASP forums and Tips

ASP forums and Tips Talk about ASP Scripting. .net and Cold Fusion as well.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-28-2006, 10:18 AM
lamberg lamberg is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lamberg is on a distinguished road
Default retrieve info problem

Hi all
I am retrieving info from database to be display in a form. These two fields, which is save as "int" (program_id) is display in drop down box form.
<%
program_id = rs("desc1")
program_id = rs("desc2")
%>

<select name="desc1">
<option value="0"></option>
<%
sql = "select program_id, program_name from program order by program_id"
rs.open sql,strconnect,0,1
while not rs.eof
if program_id = Clng(rs("program_id")) then
response.write "<option value=" & rs("program_id") & " selected>" & rs("program_name") & "</option>"
else
response.write "<option value=" & rs("program_id") & ">" & rs("program_name&qu -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 07-28-2006, 10:20 AM
cook cook is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cook is on a distinguished road
Default

The problem is that for both drop down u r using same query

Code:
sql = "select program_id, program_name from program order by program_id"

Bye -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem ! please help! shahbaz419 Domain Names Forum 0 02-17-2007 05:48 AM
need some info?? shimar MySQL Forums 1 10-28-2006 05:46 AM
Backspace key problem in MSN chat only! rozntom General Talk 1 09-04-2006 05:54 AM
Info Support Launches New Services With Ensim Unify outsourcingplans Web Hosting Industry 0 03-28-2006 08:06 PM
Problem in Building my own Forum johny MySQL Forums 1 12-07-2005 07:40 AM


All times are GMT. The time now is 01:20 AM.