Help with some dates


Posted on 16th Feb 2014 07:03 pm by admin

I have a list of dates in an array:

$mondays = array(
strtotime("October 12, 2009"),
strtotime("October 19, 2009"),
strtotime("October 26, 2009"),
strtotime("November 2, 2009"),
strtotime("November 9, 2009"),
strtotime("November 16, 2009")
);


It is an array of the next few mondays. I am wondering how I could figure out what the next monday in the array is depending on the current time, using time();

I cannot use strtotime("next monday") or strtotime("+1 monday") because the server I am working on is using a very old version of PHP (4.3.10-22) and it has a bug when I use strtotime("next monday");...I am also not able to upgrade the version of PHP.

No comments posted yet

Your Answer:

Login to answer
286 Like 16 Dislike
Previous forums Next forums
Other forums

making web pages for accounts
Hello, I would like to make pages for accounts on my website im making (its not a real website..im j

Dynamic links in an include file
I am working on a small piece of code that counts records from a database and displays the result to

Error when call dll from oracle
Hi all, please help me!

I have dll write C language, I want call it from oracle procedur

Help on query replacing the date
Hi Pals,

i want to replace the current date in a column to some value say C or D or any n

ScriptResource.axd gives an error on fresh install of ASP.NET Ajax 1.0
Hello,I have a fresh install of Microsoft ASP.NET Ajax 1.0. When I create an Ajax enabled website in

CHECH A STRING FOR ' " ' (DOUBLE QUOTES)
I am checking for delimiter (.!?) and if there is a " after a sentence then it should neglect a

Big Problem!! Please help
Hi Guys,

Im making a website for a friend have encountered a really annoying problem. When ev

try catch error
I have been trying try catch but, I can't get it to work. The code opens a non existing file called

Count number of records in all the tables with a querry URGENT PLEASE...
I downloaded ORACLE 9I DATA DUMP into my comp. There are number of tables. I need to find out the

Echo-ing MySQL content and Keep Formatting?
I have data in my MySQL such as:

QuoteBlah blah

Blah blah

etc
but when i ech

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash