https://www.w3schools.com/php/php_mysql_insert.asp
burayı inceleyerek hata yakalamalı bir hale getirebilirsiniz kodunuzu