Results 1 to 6 of 6
December 29th, 2005, 10:16 PM #1Looking for a script/code...
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 )
December 30th, 2005, 05:36 AM #2
- Join Date
- January 18th, 2005
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.
December 30th, 2005, 07:55 AM #3
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.
December 30th, 2005, 06:16 PM #4
December 30th, 2005, 06:27 PM #5
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.
January 1st, 2006, 08:13 PM #6
Ok - thanks for the advice. I'll see what I can cook up.
By oxplode in forum Programming / Datafeeds / ToolsReplies: 19Last Post: June 26th, 2014, 02:27 PM
By Azam in forum Cusimano.com ScriptsReplies: 2Last Post: August 10th, 2006, 07:29 PM
By Roland in forum Commission Junction - CJReplies: 0Last Post: December 29th, 2002, 08:42 AM
By JadaKiss in forum Midnight Cafe'Replies: 8Last Post: January 2nd, 2002, 04:34 PM