Results 1 to 2 of 2

Thread: One php problem

  1. #1
    Join Date
    Mar 2005
    Posts
    36

    Default One php problem

    I have a trouble . If I want to the year for this example:

    ------------------------------------------------------------------

    Now Year==> 1980

    *charge Year ==> 60(I wish value)
    ------------------------------------------------------------------

    How to become that?

    thank.

  2. #2
    Join Date
    Feb 2005
    Posts
    40

    Default Re: One php problem

    Quote Originally Posted by colt103e
    I have a trouble . If I want to the year for this example:

    ------------------------------------------------------------------

    Now Year==> 1980

    *charge Year ==> 60(I wish value)
    ------------------------------------------------------------------

    How to become that?

    thank.
    I don't quite get your question, but if you want to bring the value of past year. You can change minus 1 to your desired past year.

    Code:
    $last_year = date("y")-1;
    I don't know if this is what you need.

    My two cents :)

Bookmarks

Posting Permissions

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