Forum Moderators: open

Message Too Old, No Replies

Using a link to connect to a certain data field

         

Light_Gear

7:37 pm on Mar 21, 2006 (gmt 0)

10+ Year Member



Ok here is another one. I don't know if that is the best title but here is what I am trying to do.

It is a news story. on the main page it lists 3 or 4 stories and at the bottom of the page will take you to a list in date desc order of all the stories.

ach table has the option to store a summary of that story. So on the main page it will have the summary so I can fit more stories on the main page.

What I want to do is make a link with each summary and when that link is clicked it will take you to just that story.

Now I could attach the primary Key to each link but I have thousands of stories that I would have to go back and attach them to and I really do not want to do that. I was thinking I could make the link look at the story it was with and then display the values on the a page.

webdoctor

10:09 am on Mar 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have thousands of stories that I would have to go back and attach them to

Surely each story should already have a primary key? If not, it's not much of a primary key...

Light_Gear

12:43 pm on Mar 22, 2006 (gmt 0)

10+ Year Member



Sorry Wat I did not want to do is make a link for each story. I want to make one link that would recgonize which story it belonged to.

What I ment with the primary_key was I could make a link and attach it to each story but that would be alot of work I want to just make the one link