I have an ajax function that sends data to a php file, which communicates with the database. While setting up my website I\'ve stumbled upon a strange problem of INSERT and UPDA