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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.