PHP-Why is my data being inserted into mySQL table twice?
17:19 05 Feb 2017

When I run the php file below it inserts data into mysql table twice. I don't run the insert command again anywhere, both entries have unique ids. Any ideas why?

Dumb of me Here it is:

 $email,
  "source" => $token,
));

// Save the customer ID and other info in a database for later.
$newCustID = $customer->id;
$insert_new_user = "INSERT INTO zeus_borrowers (fname,lname,email,phonenum,pin,stripecusid,timeout,device) VALUES ('$fname','$lname','$email','$phonenum','$pin','$newCustID','$timeout','$device')";
$result = mysqli_query($conn ,$insert_new_user);

if($conn->query($insert_new_user) === TRUE){
}
else{
    echo "Error: " . $insert_new_user . "
" . $conn->error; } $conn->close(); ?>
php mysqli