Bug Summary
mysqli_query() and execute() for INSERT, creating 2 records in the DB. No duplicate statements, no triggers etc.
mysqli_query() and execute() for INSERT, creating 2 records in the DB. No duplicate statements, no triggers etc.
Welcome, @huzaifa, and thanks for your question.
The most common reason for doubled execution like this is accidentally triggering custom code in plugin or theme files twice. We’ve seen this when the site is missing a favicon.ico, which can cause WordPress to execute PHP during the favicon.ico request:
Please review that thread in case it helps you. If you still have issues after reading it, please can you share minimal steps to reproduce the issue?
Hi,
Thanks for your reply. The issue is with Local. I run my code using another local environment, everything is working as expected.
This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.