Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Timer in PHP/My SQL

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Timer in PHP/My SQL

Postby kassabmo » Sat Mar 23, 2013 12:19 pm

Hello All :D ,

i'm a new php developer (2 months ago) and i would like to create a timer in php/Javascript and Mysql

Example: i have a table in my DB (test) which contains:
ID;user;Value
1;kassabmo;0

In my php (index.php), i have a calendar (date + time) and i would like to select a date + time to put the value of kassabmo 1.

i want to change automatically the value of kassabmo to 1 when the current_date = selected date in my calendar. Knowing that i have php5, MYSQL 5.0.96.

Any help Please ? :)

Regards,
kassabmo
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Mar 23, 2013 12:08 pm

Re: Timer in PHP/My SQL

Postby johnj » Mon Mar 25, 2013 5:42 am

Please read about the library called jquery. Particularly, please read about onClick(), onSelect() etc etc
johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Timer in PHP/My SQL

Postby kassabmo » Mon Mar 25, 2013 3:29 pm

Dear John,

there is a miss understand !
eg: now its 1:27 AM In Lebanon, and i selected in my calendar 2:00 AM to change the value of kassabmo !
So i want to change the value in DB automatically when Clock=2:00 AM ?
It's clear now ?
kassabmo
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Mar 23, 2013 12:08 pm


Return to PHP coding => General

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron