I am relatively new in php and mysql.The problem that i am facing while i inserting value in my leave table.My leave table containing following co
leave
You can put
SET FOREIGN_KEY_CHECKS=0;
and run your query. Once you are done again set it back to 1 by
SET FOREIGN_KEY_CHECKS=1;