I have a code in PDO and I need to convert this code to mysqli, at this moment I have something like that:
$sql = "SELECT * from tabela where nome = ? AND idade = ? AND outro = ?";
$stmt = $core->conn->prepare($sql);
$bindArray = array( $_POST['nome'], $_POST['idade'], $_POST['outro'] );
$stmt->execute($bindArray);
The problem is in the $ bindArray, in the PDO in the function execute step the $ bindArray variable and it automatically binds the array, in mysqli I am not able to.
What could be wrong or can not do the same with mysqli?