Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 10-09-2017, 01:12 PM
HTMLBasicTutor's Avatar
HTMLBasicTutor HTMLBasicTutor is offline
Administrator
 
Join Date: 10-29-07
Location: Canada
Posts: 26,419
iTrader: 5 / 100%
Display image based on date using PHP

I want to create a banner cycle that changes automatically based on date.

Sometimes it would stay for the whole month. Sometimes just for a special day.

Is the solution in the original question here: Display image based on date in PHP still viable to use as a basis to start mine with considering the new PHP updates?

The site does not use Wordpress so don't bother suggesting a Wordpress plugin. Do not want to use JavaScript/Ajax in case someone arrives with scripting turned off.

Thanks!

<edit>
I found a newer solution here: Display a Different Image Each Day with PHP . Any better?
</edit>
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 10-09-2017, 01:24 PM
J. H. Rasmussen J. H. Rasmussen is offline
Super Moderator
 
Join Date: 11-11-11
Location: Copenhagen, Denmark
Posts: 5,905
iTrader: 1 / 100%
Yes the PHP-code on the webpage you link to, should still work. Remember to set the timezone before using date functions.
 
Reply With Quote
  #3  
Old 10-09-2017, 01:48 PM
HTMLBasicTutor's Avatar
HTMLBasicTutor HTMLBasicTutor is offline
Administrator
 
Join Date: 10-29-07
Location: Canada
Posts: 26,419
iTrader: 5 / 100%
Thanks!
Quote:
Originally Posted by J. H. Rasmussen View Post
Remember to set the timezone before using date functions.
Good point because the server time zone is different than mine.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP /Magento developer who has a passion for developing complex solutions rjtexas17 Sell Web Services 0 07-12-2017 04:58 AM
Display all time page views from google analytics on html website webgeek247 Coding Forum 1 04-17-2017 11:43 AM
Shared: inventivehosting.co.uk (25% OFF Recurring) inventive Web Hosting 0 03-21-2017 05:18 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:56 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC