Results 1 to 6 of 6
  1. #1
    Member Gingerbread's Avatar
    Join Date
    December 11th, 2005
    Posts
    106
    Looking for a script/code...
    Hi all,

    I was hoping someone might have a recommendation for a code or script that will accomplish what I'm trying to do.

    I'm building a site that has a link directory of sorts. I'd like to be able to classify each of my links in numerous ways and then have drop-down menus that let you choose what type of links will display when you hit a Submit button.

    For example, let's say I have links to a.com, b.com, c.com and d.com.

    a.com - classified as preppy, inexpensive, and ships to Canada
    b.com - classified as sexy, expensive, and does not ship to Canada
    c.com - classified as funky, inexpensive, and ships to Canada
    d.com - classified as preppy, inexpensive, and ships to Canada

    I'd like the user to be able to pick "preppy", "inexpensive", and "ships to Canada" from three drop-down menus, hit Submit, and for a.com and d.com to show up in a list below.

    Does anyone have any tips on how I might go about doing this?

    Thanks in advance! (If I've made any sense, that is )

  2. #2
    Animal Lover
    Join Date
    January 18th, 2005
    Location
    oz
    Posts
    1,210
    I think you need 2 things (or at least that's how I would do it if it was me - there could be other ways) :

    1. a script that will import all the data for you into an sql table (I guess you could go flat txt but if you're going to have huge numbers of links then it may get unwieldy in the display) using forms and drop downs. So I imagine your sql table will have fields for site url, description (ie preppy etc), cost (expensive or not), shipstoCanada (yes or no). Unless you are doing all the data entry yourself ie the sites and descriptions aren't submitted by others but entered in by you then you could theoretically skip this script and just import the table onto your server already all keyed in.

    2. another script to display all the data in a format that you require whether it's a search form that the visitor uses say to pull out only inexpensive sites that ship to Canada...etc (a php or perl script or asp if you're on a windows server) will probably do the job that searches the queries from the form submitted.

    Oscar
    My DataFeed Scripts - php datafeed scripts for your site
    Shareasale datafeed scripts - to display Shareasale datafeeds
    Linkshare datafeed scripts - for multiple Linkshare merchants

  3. #3
    Member Gingerbread's Avatar
    Join Date
    December 11th, 2005
    Posts
    106
    Wow - thanks Oscar! Unfortunately I don't actually know MySQL at this point, but I do have some experience with DB stuff, so I'm hoping I might be able to figure it out.

    I don't suppose there's any way to do this using a canned Javascript or anything, is there?

  4. #4
    Member Gingerbread's Avatar
    Join Date
    December 11th, 2005
    Posts
    106
    I found something that may be able to do the job, but I think it's going to take me a while to wrap my head around the way it works:

    http://javascript.internet.com/navig...-comboxes.html


  5. #5
    Moderator MichaelColey's Avatar
    Join Date
    January 18th, 2005
    Location
    Mansfield, TX
    Posts
    16,232
    There are canned packages to do link directories, but if you want the features you described you'll probably need to write your own or modify one.
    Michael Coley
    Amazing-Bargains.com
     Affiliate Tips | Merchant Best Practices | Affiliate Friendly? | Couponing | CPA Networks? | ABW Tips | Activating Affiliates
    "Education is the most powerful weapon which you can use to change the world." Nelson Mandela

  6. #6
    Member Gingerbread's Avatar
    Join Date
    December 11th, 2005
    Posts
    106
    Ok - thanks for the advice. I'll see what I can cook up.

  7. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Featured: Datafeed to SQL script? Not price comparison script
    By oxplode in forum Programming / Datafeeds / Tools
    Replies: 19
    Last Post: June 26th, 2014, 02:27 PM
  2. Allposters script code not received
    By Azam in forum Cusimano.com Scripts
    Replies: 2
    Last Post: August 10th, 2006, 07:29 PM
  3. found that gator cookie script and spyware script
    By Roland in forum Commission Junction - CJ
    Replies: 0
    Last Post: December 29th, 2002, 08:42 AM
  4. Search Box Script for Site - Anyone Know Code
    By JadaKiss in forum Midnight Cafe'
    Replies: 8
    Last Post: January 2nd, 2002, 04:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •