Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By junedkazi on
I have created a module in which I can change an image on every refresh.
Now I want to change the image every day and not on every refresh.
Pls HELP
Comments
give me a couple of mins ill
give me a couple of mins ill see what i can do.
EDIT:
You will need to get someone else to have a look at this cause its wrong on line 2 but i cant figure it out..
what I want is not this
JUNED KAZI
junedkazi@gmail.com
I know this what I want is as follows;
Assume there r only 4 images and u want to rotate them in an order throughout the week or month then what I should do.
Several mistakes: switch
Several mistakes:
switch (date(checkdate())-> switch (date("D"))
a `"`is missing at $names = array("idate()); but you don't need it with the line before just use
case "Mon": //do your stuff
cf http://ch2.php.net/date