Current location: Hot Scripts Forums » Programming Languages » ASP » How to retrieve data from database


How to retrieve data from database

Reply
  #1 (permalink)  
Old 06-13-07, 12:44 AM
Shankarandy Shankarandy is offline
Newbie Coder
 
Join Date: Jun 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
How to retrieve data from database

Hi..
I'm trying retrieve data from database to list box..
I'm using macromedia dreamweaver, Asp coding and java script.
this is what I have done so far..but i failed to retvieve..
pls correct this..

HTML Code:
 <select name="address" onChange="reloadPage" class="logintext">
	 <%mysql="select distint(address) from customer" 
	 set rs=conn.execute(mysql) 
	 while not rs.eof%>
	 <option value="<%=rs("address")%>"><%=rs("address")%></option>
	 <% rs.movenext%><%wend%>
	 </select>
Thank you
Reply With Quote
  #2 (permalink)  
Old 06-14-07, 08:45 AM
koncept
Guest
 
Posts: n/a
Reply With Quote
  #3 (permalink)  
Old 06-30-07, 03:01 PM
blake blake is offline
Newbie Coder
 
Join Date: Jun 2007
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
You were close, but first you need to connect to the database, and after wards you should close everything down to preserve system resources...

Take a look at: This example I posted - it connects using ADO...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieve data from database and send to email jilshi JavaScript 0 03-10-04 01:19 AM
QueryString and retrieve data from database pjm ASP 3 08-11-03 02:21 PM
retrieve data from database vioss PHP 4 08-03-03 04:51 AM


All times are GMT -5. The time now is 03:55 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.