Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default DATE HELP QUICKLY

    i have a site that displays shows. i am getting my date from a mysql
    function "CURDATE()" but it give me the date one day ahead of the
    actual date. i tried $myrow[8] -1 but that doen't work. im sure iknow
    what to do but its not hitting the brain right now. and the client
    wants a fix asap please help
    thanks
    todd Guest

  2. Similar Questions and Discussions

    1. video conference example need help, quickly !
      hi flash fans ...im working with the video conference example and its not possible for me to get a connecten to my local server ! whats the problem...
    2. resizing quickly?
      Can I resize a flash file and re-publish or can I reduce the published size without shrinking everything individually and reassembling? I know...
    3. doing searches - need help really quickly
      hello, a client im doing a webpage for wants me to add a search type thing on the site - the site is fully flash. what the search is for is for...
    4. How Much Space?!? PLZ HELP QUICKLY!
      Hi Paul, What you plan is fine, and 5GB is plenty for a normal installation. Keep in mind that if you format and reinstall the system partition,...
    5. How Much Space?!? PLZ HELP QUICKLY
      Thank You VERY MUCH! make was
  3. #2

    Default Re: DATE HELP QUICKLY

    [email]xeatr1@aol.com[/email] (todd) wrote in
    news:4c604830.0308231900.26c606be@posting.google.c om:
    > i have a site that displays shows. i am getting my date from a mysql
    > function "CURDATE()" but it give me the date one day ahead of the
    > actual date. i tried $myrow[8] -1 but that doen't work. im sure iknow
    > what to do but its not hitting the brain right now. and the client
    > wants a fix asap please help
    > thanks
    Set the time correctly on the server?

    More to the point, if the time on the server is out by (say) 16 hours
    (because of timezone differences or reading time in GMT or something)
    you could always modify it by using SELECT SUBDATE(CURDATE(),INTERVAL 16
    HOUR) -- which then returns a full timestamp, so SUBDATE(NOW(),...) may
    be more accurate...

    Of course, if all you want is to subtract 1 day,
    SUBDATE(CURDATE(),INTERVAL 1 DAY) will do it.

    Pete.
    Peter Jones Guest

  4. #3

    Default Re: DATE HELP QUICKLY

    Peter Jones <jonespr@optushome.com.au> wrote in message news:<Xns93E195CE99FBDprjpp1516202119@210.49.20.25 4>...
    > [email]xeatr1@aol.com[/email] (todd) wrote in
    > news:4c604830.0308231900.26c606be@posting.google.c om:
    >
    > > i have a site that displays shows. i am getting my date from a mysql
    > > function "CURDATE()" but it give me the date one day ahead of the
    > > actual date. i tried $myrow[8] -1 but that doen't work. im sure iknow
    > > what to do but its not hitting the brain right now. and the client
    > > wants a fix asap please help
    > > thanks
    >
    > Set the time correctly on the server?
    >
    > More to the point, if the time on the server is out by (say) 16 hours
    > (because of timezone differences or reading time in GMT or something)
    > you could always modify it by using SELECT SUBDATE(CURDATE(),INTERVAL 16
    > HOUR) -- which then returns a full timestamp, so SUBDATE(NOW(),...) may
    > be more accurate...
    >
    > Of course, if all you want is to subtract 1 day,
    > SUBDATE(CURDATE(),INTERVAL 1 DAY) will do it.
    >
    > Pete.
    you are an absoulte life saver THANKS!!!
    todd Guest

  5. #4

    Default Re: DATE HELP QUICKLY

    [email]xeatr1@aol.com[/email] (todd) wrote in
    news:4c604830.0308251931.6e58f249@posting.google.c om:
    > you are an absoulte life saver THANKS!!!
    No problem,
    Pete.
    Peter Jones Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139