hai, I want to create a timer for online test page which gets the time duration for countdown from database and dosenot reset on page refresh.
i have a timer which gets time from database but it resets on page refresh.
i am using php mysql.
i am a newbee so pls help me.
thanks in advance.
With the Bionoid countDown this can give something like this
// Convert the timeLimit (coming from data base) to UTC
var timeLimit=parseInt("<?php echo $timeLimit ?>");
var dateLimit=new Date(timeLimit*1000);
//... Display a countDown with this date