Hey guys. I have a long list of key term words (about 1000).
What would be the best way to have a user be able to click each word and display a different page with a big definition of that word and examples, pictures, etc.?
I think it has to do with the question mark and pagename in the URL, but haven’t looked into this. Sorry.
I also want to have short definition be available when you hover over that word, preferably from the first line in the definition of the page that you can click the word to get to.
Basically, do I have to create a new PHP file, or HTML file, or something to have each word have its own page? Or can you do this a different, more efficient way?
You can put your key terms and associated information in a database and make a template.
Links like yoursite.com?word=fish could then get all the info about fish from the database and fill in the template.
Hmm that’s a good idea. Thank you.
Do any big websites use that functionality? It seems like a lot of text would be stored in the database though. :-\
Any idea about hovering over a word to see a definition? Just use the “title” attribute? ANy better way?
A lots of sites work in a similar way. This site for one and how much text is on this site. search for css tool tip for the hovering bit.
Well the information on the page is going to be similar in size to a typical wikipedia page, so quite a bit. Did you mean just store the DEFINITIONS themselves in the database, along with the key term words? Or did you actually mean the whole page of information’s text? Because there are images on the pages too.
wikipedia uses a database so you’ll be fine.
I meant all of the information including links to the images.
Any link to a PHP script that does this very in the basics, with MySQL or something? Not sure exactly what to search for. Thank you so much.
Well you could use http://www.mediawiki.org or another wiki type script