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

 

Database Results Wizard

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

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

All Forums >> Web Development >> ASP and Database >> Database Results Wizard
Page: [1]
 
leatherlips

 

Posts: 247
From: USA
Status: offline

 
Database Results Wizard - 4/5/2008 20:10:19   
I am trying to use the Database Results Wizard to display some information on my page from a database. I am using FrontPage 2003. The database I am trying to draw from is from a Snitz Forum database.

So far I have things working with the exception of an item or two.

I am wanting to display the author of a topic. With the wizard, it only displays the record number of the member and not their name.

The database has multiple tables in them. The wizard seems to only let you select one of those tables. There is a custom query section in the wizard that may do what I want if only I knew how to properly input the command. I have no idea how to do that.

I realize this may not be a very good explanation of my needs. I can explain more if needed. Any ideas?

_____________________________

Mangione Magic - The Music Of Chuck Mangione
BeTheBall

 

Posts: 6336
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: Database Results Wizard - 4/5/2008 20:34:20   
Your query would be something like this:

SELECT Author FROM Table1 INNER JOIN Table2 ON Table1.authorID = Table2.authorID

Obviously I don't know your table or field names, but the above is a general idea of how it's done.

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to leatherlips)
leatherlips

 

Posts: 247
From: USA
Status: offline

 
RE: Database Results Wizard - 4/5/2008 20:54:12   
Thanks for your quick response!

My Table 1 is called FORUM_TOPICS. The author name column is T_AUTHOR.

My Table 2 is called FORUM_MEMBERS. The T_AUTHOR in table 1 is the same as M_MEMBER in table 2.

Is this how I would enter the query?

SELECT T_AUTHOR FROM FORUM_TOPICS INNER JOIN FORUM_MEMBERS ON FORUM_TOPICS.T_AUTHOR = FORUM_MEMBERS.M_MEMBERS

_____________________________

Mangione Magic - The Music Of Chuck Mangione

(in reply to BeTheBall)
BeTheBall

 

Posts: 6336
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: Database Results Wizard - 4/6/2008 18:59:30   
That should do it. You may need a WHERE clause if you are trying to get just one specific author.

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to leatherlips)
leatherlips

 

Posts: 247
From: USA
Status: offline

 
RE: Database Results Wizard - 4/7/2008 14:22:18   
I am still having trouble getting this to work. Here is what I need to show up from the database; perhaps you can tell me the exact code to insert into the custom querey? I do not know anything about this stuff... :)

From a table called Forum_TOPICS I need to show the following fields: T_TOPIC, T_AUTHOR, and T_DATE.

From another table called FORUM_REPLIES I need to show the following fields: R_REPLIES, R_AUTHOR and R_DATE.

The challenging part is that both T_AUTHOR and R_AUTHOR equal a field in another table called FORUM_MEMBERS. The field they reference to is called M_NAME.

Does this make any sense? :)

_____________________________

Mangione Magic - The Music Of Chuck Mangione

(in reply to BeTheBall)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Database Results Wizard
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