Thread: sunrise/sunset

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    14
    Rep Power
    0
    Hi, I'm developing a weather web page and want to include sunrise/sunset info.

    I've entered the cities into a table (php/mysql), they have fields like cityname, max, min, weather. I want to add latitude and longitude to the table. Then when the page loads up it reads the cities lat/long and gives you the sunrise/sunset times for that day.

    Is this an easy thing to do?

    Thanks

    Mike
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,646
    Rep Power
    4492
    do you have the algorithm that gets the sunrise and sunset times from the latitude and longitude? if so, it'd be very easy, i'd guess. just store the lat and long as integers or floating point numbers, pull them out and have php determine your sunrise and sunset times...

    what is the algorithm?

    ---John Holmes...

IMN logo majestic logo threadwatch logo seochat tools logo