0
I am doing so, but always error because of array, someone knows how to solve it:
public function Verificar(string $tabela,string $parametros,array ...$usuario) {
$this->Query = $this->Conexao->prepare("SELECT * FROM usuarios WHERE $tabela");
$this->Query->bind_param($parametros,$usuario);
$this->Query->execute();
$this->ResultadoUser = $this->Query->get_result();
return $this->ResultadoUser;
}
vc cannot directly pass an array to
bind_param()
.– rray
there is some solution in this case ?
– Otavio Fagundes
Depending on the php version you have a simpler option see here
– rray