Results 1 to 8 of 8

Thread: MYSQL Default Date

  1. #1
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts

    MYSQL Default Date

    Ive created a data capture form, which people fill in. One field has the date attribute in mysql, hwoever it has defaulted to yyyy-mm-dd

    How can I alter this? I want the user to select the date from a drop down D M Y, how can I make a D M Y drop down, so they can choose the date from a predetermined selection? and then how can I make it out put in DD/MM/YYYY format?

  2. #2
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    384 times in 313 posts
    what code is the front end in ? PHP ?
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  3. #3
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    Quote Originally Posted by Moby-Dick View Post
    what code is the front end in ? PHP ?
    oops, aye.

  4. #4
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    384 times in 313 posts
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  5. #5
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    Its good, but christ knows (maybe he doesnt) how to get that into a form, and submit to the db. To me it looks like it has 3 variables $day, $month and $year, does my db need these three tableS??

  6. #6
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    384 times in 313 posts
    pass - I was trying to think like a dev and its hurt my head already

    I was wondering of there was some little date dropdown control you can use.
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  7. #7
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    384 times in 313 posts
    tips I got from my more dev orientated collegue.

    - steal some java script from t'internet
    - have 3 dropdown boxes , and concatenate the result into the data for SQL

    http://www.mattkruse.com/javascript/calendarpopup/
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  8. #8
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    as what im doing is basic of the basic, ill just have 3 variables, dmy and 3 boxes. cba with the effort of anything else.

    cheers though, did that pipex thing ever come through? theyre showing me as 3 months free, 2 for migrating and 1 from ref... however, theyve billed me for migration and royally cocked up, yet they still havent sorted it almost a month down the line.
    Last edited by Vini; 02-11-2006 at 01:19 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mouse with a life of it's own.
    By firefox in forum PC Hardware and Components
    Replies: 10
    Last Post: 23-03-2006, 12:49 PM
  2. Making PHP and MySQL Talk?
    By Dav0s in forum Software
    Replies: 4
    Last Post: 18-09-2005, 10:53 PM
  3. mySQL problems
    By Vini in forum Software
    Replies: 2
    Last Post: 22-08-2005, 01:01 PM
  4. So, you want to date my daughter, do ya?
    By Zak33 in forum General Discussion
    Replies: 24
    Last Post: 31-08-2004, 12:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •