Page changes according to the hour
Moderator: General Moderators
Page changes according to the hour
Somebody can help to construct a web site me to put a programming of one radio and that the page changes according to the hour of the programs to emit itself (now in air xxx it programs)
Thanks!
Thanks!
To be honest, I really don't know what you're talking about (very unclear). But, here's how you can do different things depending on the hour.
Code: Select all
$curr_hour = date('H');
switch($curr_hour)
{
case 0:
//do stuff if it's between 12:00 and 12:59 AM
break;
case 1:
//do stuff if it's between 1:00 and 1:59 AM
break;
//and so on and so forth......
}Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Les escribo en Spanish haber si me logran entender
Lo que busco es alguna forma de hacer una base de datos con la programación de una Radio (Fm) y que muestre en la pagina web el programa que esta saliendo al aire.
Por ejemplo: en estos momentos son la 12 am y escuchamos ahora el programa chart music
Gracias
I write to them in Spanish to have if they manage to me to understand What I look for is some form to make a data base with the programming of one Radio (Fm) and that shows in the page Web the program that this leaving to the air. For example: at the moment they are the 12 a.m. and we listened to the program now chart music
Thanks!!
Lo que busco es alguna forma de hacer una base de datos con la programación de una Radio (Fm) y que muestre en la pagina web el programa que esta saliendo al aire.
Por ejemplo: en estos momentos son la 12 am y escuchamos ahora el programa chart music
Gracias
I write to them in Spanish to have if they manage to me to understand What I look for is some form to make a data base with the programming of one Radio (Fm) and that shows in the page Web the program that this leaving to the air. For example: at the moment they are the 12 a.m. and we listened to the program now chart music
Thanks!!