Jump to content

dinamically reload from database


web_master

Recommended Posts

Hi,

 

at first I am absolutely novice in Ajax, Ill never do nothing with Ajax, but maybe You can help me.

 

program.jpg

 

As You see on image this is an radio program, so I want to that "On Air" text changing dynamically if the server time is between begin and end time (time on left side).

 

At first I reload from database (MySql) with php the date and time.

- Date (at top) is stored separately in  database as columns Year, month and day.

- Time is stored too in database as begin of time and the end of time.

 

I want:

 

- If the server date is equal with stored date and the server hour is between a two times (for example between 08-12) the On Air is lightning in that row

- If the server hour is between 12-16, than the OnAir is ligtning in this row

 

everithing WIHTOUT refreshing site.

 

Oh, I hope You will understand What I want...

 

Thanx in advanced

 

T

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/204547-dinamically-reload-from-database/
Share on other sites

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.