So, i have a prepared statement that returns false on execution but error code is 0, meaning no error, despite that there's obviously an error since it's not being executed..
I prepared the statement that way:
if(!$prepared_statements['GetAdmUsers'] = $conn->prepare('SELECT nome FROM Alunos WHERE professor = ?'))
echo "<br/>Erro: " . $conn->error;
And execute it that way(snippet from a function)
if(!$p['GetAdmUsers']->bind_param('i', $id))
echo "<br/>Erro: ". $c->error;
if(!$p['GetAdmUsers']->execute())
echo "<br/>Erro: ". $c->error;
Before you ask me for the full code, i should say that all variables and objects were tested and that's not the problem, other parts of the code other than used variable and objects are not connected to the issue.
Thanks in advance.
edit: $c is the mysqli connection object, errno is 0