Thread: Calendar Script

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Randolph, NJ
    Posts
    36
    Rep Power
    15
    I am making a script that a user can input an event on a certain day of the year. Then will show all the entries in order of the date.

    Scenario: User 1 adds an event for Dec. 13th, 2000......
    User2 adds another event for Jan 13th, 2001.

    Problems:
    1. How do I keep the order so that the Dec one shows up before the January one.
    2. How do I go about formatting the date? Use a "date" attribute on a MySQL row or make them input a specific format?

    Thank you for your time. Any example code for these would be deeply appreciated.

    ** Sorry for all the posts today, major work day i guess, finally got motivated. Thanks alot. Cya.

    ------------------
    ================
    -Khill, www.tsrealm.com
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    51
    Rep Power
    15
    what medium are you using to store the information? Text file or db?

    a db would be _much_ easier (your sql command could just do an ORDER BY date_column), but its possible to do with a textfile as well, although i wouldnt recommend it.

    /wj
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Randolph, NJ
    Posts
    36
    Rep Power
    15
    I am using a database. But would PHP order the date according to not only the month and day, but to the year too? That is my only dilema. Let me know...thanks.

    ------------------
    ================
    -Khill, www.tsrealm.com

Similar Threads

  1. cannot resolve symbol
    By soelo in forum Java Help
    Replies: 3
    Last Post: April 1st, 2004, 04:14 AM
  2. Replies: 2
    Last Post: February 10th, 2004, 11:03 PM
  3. Anybody know a good calendar script?
    By riotx in forum PHP Development
    Replies: 1
    Last Post: January 23rd, 2004, 04:19 AM
  4. How can I enable a power user to run this script?
    By Yamadatroy in forum Visual Basic Programming
    Replies: 2
    Last Post: January 19th, 2004, 09:39 PM
  5. cannot connect secure to my script!
    By rjbourke in forum Perl Programming
    Replies: 2
    Last Post: January 11th, 2004, 09:19 PM

IMN logo majestic logo threadwatch logo seochat tools logo