PHP Pick a date + show results?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blondieUA
    New Member
    • Nov 2009
    • 1

    PHP Pick a date + show results?

    Hello guys!

    I have some problem with creating the result page :(

    I need to create a web-page for my college course in Computer Science. I decided to create a site about Horoscopes. So if a person picks the date, he will be taken to a page with the results for different Horoscopes, e.g. Chinese, Zodiac, Astrological. The problem is that they all have different results for different periods of time. How can I arrange it?

    Like if some1 will pick a date 1 Jan 1981, than he will be a Rooster due to Japanese Horo, and a Capricorn for Zodiac horo. So there will be different results for the same date. I have results for different periods of times in txt files for all horoscopes and same with image results. How can I make this, so the person will proceed to a page where he will see his result in a form of a list: Image for Chinese horo, than the text; than image for Zodiac Hore and the text...
    Please, give me some simple ideas, I am so lost and noone can help me :(
    I am sorry for the language, :) I am not from English speaking country.
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    #2
    Well once the date in the date picker is submitted, you need to go through a series of tests. I suggest you write functions for each type of Horoscopes that can take a date input and output an array of the horoscope name and the horoscope itself.
    Give us an example of a criteria for a horoscope. My birthday is 29 Oct 1986, walk me through the logic of one type of horoscope. That logic is what your function should do for any date entered.

    Comment

    Working...