Page changes according to the hour

Looking for volunteers to join your project? Need help with a script but can't afford to pay? Want to offer your services as a volunteer to build up your portfolio? This is the place for you...

Moderator: General Moderators

Post Reply
britz
Forum Newbie
Posts: 5
Joined: Wed Jun 16, 2004 6:07 pm

Page changes according to the hour

Post by britz »

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!
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

I'm not sure your question is clear enough for anyone to understand (though your English is quite good for someone from Uruguay ;)).
Could you try to rephrase it?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

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.
britz
Forum Newbie
Posts: 5
Joined: Wed Jun 16, 2004 6:07 pm

Post by britz »

Okey which I need is to make a data base with the programs that are emitted in the radio but I want that they are in the page according to the hour (example: now live Hours are the 14:00 xxx program)
Thanks!!
User avatar
snpo123
Forum Commoner
Posts: 77
Joined: Sat Apr 17, 2004 6:31 pm

Post by snpo123 »

when you say radio do you mean the radio people listen to (AM/FM) or a radio button in html. Im pretty sure you mean the first, but ill ask just to be sure.
britz
Forum Newbie
Posts: 5
Joined: Wed Jun 16, 2004 6:07 pm

Post by britz »

Yes people listen to (AM/FM) Radio
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

I believe he wants a countdown until the show starts..
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yeah.. sounds like a live schedule/playlist/countdown thingy...
britz
Forum Newbie
Posts: 5
Joined: Wed Jun 16, 2004 6:07 pm

Post by britz »

Attention I do not want that she is listened to the subjects that are
sounding in the radio Also could be algun system of Banner which they
show according to the hour
Thanks!!
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

tell me what you want in your own language... and i'll get it translated :)
make sure u tell me what language it is too
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

All your base are belong to us
britz
Forum Newbie
Posts: 5
Joined: Wed Jun 16, 2004 6:07 pm

Post by britz »

Les escribo en Spanish haber si me logran entender :oops:
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!!
Post Reply