mysqli: can it prepare multiple queries in one statement?
A prepared statement can only execute one MySQL query. You can prepare as many statements as you want in different variables: $stmtUser = $sql->prepare(“INSERT INTO user (id_user, username, pw, email) VALUES (?,?,?,?)”); $stmtProc = $sql->prepare(“INSERT INTO process (id_user, idp) VALUES (?,?);”); And then execute them later. If you want to ensure that neither one is … Read more