I make a call to a php file using jquery’s ajax function. It goes to the file, as it should and starts executing commands. I have multiple
$stmt->execute();
calls, which are mysqli update queries. But only the first one will execute, and after-which it will return instead of executing the next query. Why does it return after only 1 query?
Your program is crashing between the queries. Unfortunately, being PHP, it will often do so silently, leaving you scratching your head wondering what’s happening. Check your error logs & if they’re empty, you might need to turn up the error reporting level.
At first glance, I’d guess that your SQL is invalid, causing an exception which is unhandled.