Help Help help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help Help help

    hello friends please help

    how is last 7 days in php
    examble:
    02.01.11
    01.01.11
    31.12.10
    30.12.10
    29.12.10.....etc

    #2
    this would be good reading for a start
    PHP: time - Manual
    and this as well
    PHP: date - Manual
    It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
    ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
    ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
    キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

    Comment


      #3
      PHP Code:
      $mdate("m");
      $dedate("d");
      $ydate("Y");

      for(
      $i=0$i<=7$i++){
          echo 
      date('d-m-y:D',mktime(0,0,0,$m,($de-$i),$y)); 
          echo 
      "<br>";

      Originally posted by vijayakumar View Post
      hello friends please help

      how is last 7 days in php
      examble:
      02.01.11
      01.01.11
      31.12.10
      30.12.10
      29.12.10.....etc

      Free Mobile Web Scripts by me: Free Youtube Downloader, Tweets Reader, Facebook Wall Posts Reader
      PHP Tutorials: How to Secure Your PHP Script (PHP SECURITY)
      Want to Develop/Edit your WAP/Web Site? Add me to Gtalk (gmail) 'lakshan1989' or PM me.

      Comment


        #4
        thanks to metulj and firemax

        Comment

        Working...
        X