Home | Advertising Info2 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Sunday, May 19, 2024  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Database Issues
 PowerASP Code Help Area : Classic ASP - Database Issues
Subject Info: "Nested" table reads... A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
shadowspell
Newbie
Newbie
Avatar

Joined: May/04/2004
Location: United States
Online Status: Offline
Info: 13
Added: December/06/2004 at 2:23pm | IP Logged Quote shadowspell

I use the following code to read a db table and dynamically build a html table with the data. The last field, 'dev_proj_status' should have its values read in from another table of status types.
------------------------------------------------------------
SQLstmt = "SELECT * FROM tbl_wr_Main WHERE (dev_proj_status <> 'Pending') AND (dev_developer = '"&usr_fname&" "&usr_lname&"') ORDER BY submit_date DESC"
Set RS = Conn.Execute(SQLstmt)
Do While NOT RS.EOF
%>
<tr align="center" valign="top">
<td><%=RS.Fields.Item("id").Value%></td>
<td><%=RS.Fields.Item("submit_date").Value%>< /td>
<td><%=RS.Fields.Item("proj_req_due_date").Value%&g t;</td>
<td><input name="proj_title" type="text" value="<%=RS("proj_title")%>" size="55" maxlength="255" readonly> 
  <input name="proj_url" type="text" id="proj_url" value="<%=RS("proj_url")%>" size="55" maxlength="255" readonly style="background-color:#FFFFCC;"></td>
<td><textarea name="proj_det_desc" cols="50" rows="3" readonly="yes"><%=RS("proj_det_desc")%></textare a></td>
<td><%=RS.Fields.Item("usr_fname").Value%>&n bsp;<%=RS.Fields.Item("usr_lname").Value%></td>
<td bgcolor="#FFEEDD">
<select name="dev_proj_status">
<option selected><%=RS("dev_proj_status")%></option>
</select>
</td>
</tr>
<%
RS.MoveNext
Loop
RS.Close
------------------------------------------------------
So my question is can I, within the <select> tag, read in the values of another table (which has only one field) to populate that <select> tag thus nesting these table reads within each other? I want this so the developer can change the status of the project.

Thanks for any help,
Chris
~`^%



__________________
~`^%
In Vino Veritas
Back to Top View shadowspell's Profile Search for other info by shadowspell
 
cwilliams
Admin Group
Admin Group
Avatar

Joined: April/26/2004
Location: United States
Online Status: Offline
Info: 137
Added: December/06/2004 at 4:43pm | IP Logged Quote cwilliams

did you read this

http://www.powerasp.com/content/code-snippets/forms-populate -drop-down-menu.asp



__________________


Chris Williams
http://www.PowerASP.com
Back to Top View cwilliams's Profile Search for other info by cwilliams
 
shadowspell
Newbie
Newbie
Avatar

Joined: May/04/2004
Location: United States
Online Status: Offline
Info: 13
Added: December/06/2004 at 4:56pm | IP Logged Quote shadowspell

cwilliams,

Thank you. But, can I nest the table reads?

Chris



__________________
~`^%
In Vino Veritas
Back to Top View shadowspell's Profile Search for other info by shadowspell
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2024 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com