Worlds most stupid question!

Discussion in 'PHP' started by onlyican.com, Dec 22, 2005.

  1. #1
    Hey

    Had a brain freeze on this one

    I have 3 vars day, month and year

    i want to make a var with all 3 of them
    so instead of
    echo $day."-".$month."".$year;

    i want to echo $full_date and get the same responce

    And before you say, why aint i using a time stamp, it is because i am making a search my date for the DB, i am british so the date format is d,m,Y, and mysql db likes Y,m,d.

    Anyway, is it array i want. it has totally gone from my brain.
     
    onlyican.com, Dec 22, 2005 IP
  2. blackbug

    blackbug Peon

    Messages:
    1,002
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Um,
    $full_date = $day."-".$month."".$year;
    echo $full_date;

    ???

    Or I've completely misunderstood...
     
    blackbug, Dec 22, 2005 IP
    noppid likes this.
  3. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #3
    $full_date = $day."-".$month."".$year;
    echo $full_date;
     
    noppid, Dec 22, 2005 IP
    blackbug likes this.
  4. onlyican.com

    onlyican.com Peon

    Messages:
    206
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Told ya it was a stupid question, thought i tried that, and got an error message.

    I must have miss-typed.

    Cheers
     
    onlyican.com, Dec 22, 2005 IP
    noppid likes this.