Jump to content

[SOLVED] Dynamic Loading of Pictures based on the Time


JADASDesigner

Recommended Posts

I posted something similar in another thread.

 

<?php
$_hour=date("G");

if (intval($_hour)<0 && intval($_hour)>1) {
  //show image 1
}
else if (intval($_hour)<1 && intval($_hour)>2) {
  //show image 2
}

//etc., follow the pattern.
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.