Idea for a site, but not sure how to implement
#1
Hi all –

Looking for some help to get this idea I have working. So I have a big CSV of something (sorry, don't want to put niche out in public. If you are really willing to help and need to know this info, PM me). I want to make a site so that when a visitor goes to site.tld/pagegen.php, it will take information from the CSV (well, a mysql database at that point), and generate a page containing that information. I realize that's all very abstract, so here's an example.

I have the stereotypical database of golf courses. I want it so that when a visitor goes to golfcourses.tld/pagegen.php, a quiz will appear on the page, with questions like:

Do you like golf course A or golf course B more?
* Radio button for A * Radio button for B

If you had to write a description for golf course C, what would it be?
[textarea]

Does golf course D have 9 holes or 18 holes?
* Radio button for 9 * Radio button for 18

That should get the point across. So really my question is: how would I go about drawing random information from a database to form questions? And also, how could I make it so that once somebody goes to /pagegen.php, the file outputted becomes static and indexable (I assume using a write command or something...)

Thanks!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Amount of ads on a site Shortie861 0 2,671 02-28-2016, 02:24 PM
Last Post: Shortie861
  Why my Joomla site slow? shakemelikeapig 2 3,827 03-30-2012, 01:19 PM
Last Post: cocal10
  who would buy a developed site and why? Spex 5 5,687 06-29-2010, 08:02 AM
Last Post: piero0074u
  How to add a blog to a site? justontime 18 12,291 05-07-2008, 11:27 AM
Last Post: justontime
  How often do you use photos on your site? berlinlife06 7 6,689 11-01-2007, 05:27 PM
Last Post: berlinlife06
  How do you monetize a site for Adsense domaindare 0 3,609 05-10-2007, 12:54 PM
Last Post: domaindare
  Developing your site into yet another directory? llegent 10 9,337 12-26-2006, 07:46 AM
Last Post: kisna
  How to put rss feed on my site? deelip 4 5,168 08-13-2006, 11:50 AM
Last Post: deelip

Forum Jump:


Users browsing this thread: 1 Guest(s)