SunQuest
           PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 6th, 2008, 02:52 PM
jiten jiten is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 20 jiten User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 41 m 7 sec
Reputation Power: 0
Question Help with Date issue...looks easy ?

Dear friends:

My code is running perfect: I need to display day by day from today to 10 next years.... but now I also need to start with a variable day (not necessarily with "today") . So, what do I have to do ?? what do I have to change ? Here is the code is working ok, I copy to you, thanks in advance...



PHP Code:
 $startdate mktime(); 
$enddate strtotime("+10 years"$startdate); 

for(
$i=$startdate$i<=$enddate$i=strtotime("+1day",$i)) 

$linea=date("Y-m-d"$i);
echo (
$linea);


Reply With Quote
  #2  
Old May 7th, 2008, 02:58 AM
DavidMR's Avatar
DavidMR DavidMR is online now
Contributing User
Click here for more information.
 
Join Date: Apr 2007
Location: Ireland
Posts: 711 DavidMR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Week 4 Days 13 h 52 m 42 sec
Reputation Power: 2
you should be able to find a solution by altering code found here:

http://forums.codewalkers.com/php-coding-7/trying-to-query-records-less-than-six-months-old-but-882908.html
__________________
When I die, I want to go peacefully like my Grandfather did, in his sleep -- not screaming, like the passengers in his car.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Help with Date issue...looks easy ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway