Help Help help

Started on the old forum in January 2011 · view the original in the archive · old links redirect here

3 replies · 318 views · started 15 years ago · 1 min read

3 participants
vijayakumar Junior · 33 posts #1

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

metulj Super moderator Principal · 1,726 posts #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ノ刀ノイリ!

firemax Developer · 221 posts #3
$m= date("m");
$de= date("d");
$y= date("Y");

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

vijayakumar wrote: 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

External image (may be gone) 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)](http://coding-talk.com/f14/how-to-secure-you…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close