Displaying random and all links on my site

5 replies
Hi,

I have a site made in classic asp. Since I'm adding more and more pages it would be nice to have some functions to link to these pages.

I would like a function to display random links from a list defined by me, display all the links on the list, or just a number of the links.

Do you know how I can do this?

I was thinking about making an Access DB and using ODBC to get data from that, but it seems a bit more complicated than it has to be.

Can I just have a list of my links in a text file and access that?

Thanks.

Regards,
Thomas
#displaying #links #random #site
  • Profile picture of the author ninjawarrior
    That would work, I think. But only if you knew how to use ASP.

    Hope this helps.
    {{ DiscussionBoard.errors[1302200].message }}
  • Profile picture of the author edynas
    Banned
    What I would do is have a function which creates that file by pulling the data from the database at a given time. depending upon your rate of adding links it would be daily, weekly etcetc. Because otherwise you still will be looking at static data while you want it to be mor edynamic

    Edwin
    {{ DiscussionBoard.errors[1303309].message }}
  • Profile picture of the author ThomasTe
    Thanks, guys.

    Regards,
    Thomas
    {{ DiscussionBoard.errors[1304594].message }}
  • Profile picture of the author powerspike
    personally i would recommend against displaying a random link on every page, as it doesn't generate good seo (google will think something dodgy is up - and yes i have tested this once or twice, and it failed bad), what i would suggest is going a little more advanced, and have a second table (or data file), that when a link is displayed on a url, it is stored, so the next time that page is displayed, it'll display the same link, that way the links will age well =)
    {{ DiscussionBoard.errors[1305198].message }}
  • Profile picture of the author ThomasTe
    Thanks for the input, powerspike.

    Regards,
    Thomas
    {{ DiscussionBoard.errors[1308204].message }}

Trending Topics