Jump to content

Archived

This topic is now archived and is closed to further replies.

halcyonalt

Getting SQL records to only show up once if there are multiples. Possible? DW MX

Recommended Posts

In Dreamweaver MX.

I am creating a link index of different written works. I want the different viewing options to be flexible, such as browsing through written works based on the title, based on the author, and whatnot.

I would like to create an author page, and I think I have most of it. I downloaded the Navigation suite so that I can use letters to help navigate.

The problem is, a lot of the written works are written by the same authors. One author's name will show up several times in the database. How do I make it so that it only shows up once when the results display?

If I can avoid coding, I would like to, because coding seriously baffles me. I am still very much a layman with PHP.

If I can get it to only show up once, I think my problems are solved. I know how to create detail pages and such. It's just that tricky problem of making sure that my page isn't filled up with the same author for one particular letter.

Share this post


Link to post
Share on other sites
SELECT DISTINCT author ... would work in part of your query. I have no idea how DreamWeaver works.

Share this post


Link to post
Share on other sites
Urk, nevermind. It seems that once I introduce URL parameters into the query, it doesn't seem to want to work. I'm not sure why that is. The query works fine with the parameter without the DISTINCT tag on it, but once I add it, nothing shows up in the query. I don't even get an error message.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.