What I have tried:
can anyone help me.
var age = new Date().getFullYear()-getYearInteger();
in php page :
$sql="INSERT INTO expression (id, age) VALUES ('','$age')";
but it is stored value 0 in mysql database. how to call function in ajax and store the values in database