I want to trap the TIME an event started, to insert it into a MySql table.
In my javascript, I wrote:
start = new Date( )
starttime = start.getTime( );
When I do that my alert shows a 13 digit number. (OK, I guess).
But now I need to INSERT that time into a MySql table.
So I send it off, as a "get parameter", using:
url = "ajaxUpdate.php?began=" + starttime;
Having received this parameter, I do not know how to
transform it, using PHP, so a mysql_query can use to reflect
the time gotten from the javascript function.
In my javascript, I wrote:
start = new Date( )
starttime = start.getTime( );
When I do that my alert shows a 13 digit number. (OK, I guess).
But now I need to INSERT that time into a MySql table.
So I send it off, as a "get parameter", using:
url = "ajaxUpdate.php?began=" + starttime;
Having received this parameter, I do not know how to
transform it, using PHP, so a mysql_query can use to reflect
the time gotten from the javascript function.