I am trying to insert data into the database using ajax
call
my problem is when I click the button twice the data is storing twice
and it is making me sick. How can I avoid it?
<from><button id ="GdStartTest"> </button></form>
$("#GdStartTest").click(function(){
$.ajax({
url: "gdcontroller.php",
method: "POST",
And this controller:
$studentQuery = $conn->query("INSERT INTO r_job_scores