I am updating a mysql database using php. It is adding to the database once, but on subsequent instances the db doesn't update if the name and email remain the same. I want to add the same name and email as many times as I like but cannot figure out why I can't. I have checked the db and from what I can tell nothing is set as unique
. Is there anything I am missing from my query or people think my db might have another setting somewhere.
DB
email |name
---------------------------
john@example.com | John
Mysql query
$sql = "INSERT INTO customers (name, email)
VALUES ('John', 'john@example.com')";
$conn->query($sql);
$conn->close();