navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Display results from four tables

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Dreamweaver Help >> Display results from four tables
Page: [1]
 
cdrees

 

Posts: 42
Joined: 8/4/2004
Status: offline

 
Display results from four tables - 8/7/2007 17:02:54   
Hey all,

Quick question... I have a results form that has a main table (audit) and three other tables that contain model number, requestor and status. Each of those tables has a table_id, which corresponds to the table_id in the audit table.

In other words, the audit table has:

audit_inv_id
audit_srvNAme
audit_status_ID
audit_date
audit_modelID
audit_reqID
action

The requestor table has:
req_id
req_lastname
req_firstname

etc., etc..


In my main form I want to display

Server Name - Status - Model - Date - Requestor - Action
===============================================
Name 1 6 7/7/2007 3 Inserted


So basically, the actual records in the audit table contain just ID for status, model, etc. The labels (or names) for what they mean live in their respective table.

I want to lookup the value of each, and return those values in my form. For whatever reason, I not quite getting it to work...

I'm using Dreamweaver, ASP and SQL 2000 with IIS 6.0. Thanks!

Any help would be appreciated!!


Regards,

Christopher Rees
President,
Palaestra Training
www.palaestratraining.com
1-800-324-0946
mar0364

 

Posts: 3072
Joined: 4/5/2002
From: Florida, US
Status: offline

 
RE: Display results from four tables - 8/8/2007 13:08:34   
I' don't think I understand your question. I think your trying to populate a drop down menu in a form from a table? Is that the case? If that table has duplicate values and you just want to show one of each you can select DISTINCT in you SQL.

Hope that helps :)

_____________________________

Easy Web

“Stay committed to your decisions, but stay flexible in your approach.”


(in reply to cdrees)
cdrees

 

Posts: 42
Joined: 8/4/2004
Status: offline

 
RE: Display results from four tables - 8/8/2007 14:03:59   
Actually I want to show a dynamic list.. no drop downs, so it's basically a dynamically generated table of just text - no fillable fields, with the data being pulled from 4 tables.

The main table has on the IDs for several fields, those IDs correspond to the field names that exist in the other tabels ("lookup" tables)

Thanks!!


(in reply to mar0364)
mar0364

 

Posts: 3072
Joined: 4/5/2002
From: Florida, US
Status: offline

 
RE: Display results from four tables - 8/9/2007 8:40:06   
Sounds like you just need to write a SQL statement. I would try creating my statment in design view if your not real good with SQL.

_____________________________

Easy Web

“Stay committed to your decisions, but stay flexible in your approach.”


(in reply to cdrees)
rdouglass

 

Posts: 9187
From: Biddeford, ME USA
Status: offline

 
RE: Display results from four tables - 8/9/2007 9:57:43   
quote:

Sounds like you just need to write a SQL statement.


I agree. I'd start looking at the UNION command. That's what it does.

<$.02>

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to mar0364)
Page:   [1]

All Forums >> Web Development >> Dreamweaver Help >> Display results from four tables
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts