I'm trying to do a select "binded" but this is returning the following error Warning: mysqli_stmt :: bind_param () [mysqli-stmt.bind-param]: Number of variables does not match number of parameters in prepared statement in
$query = "SELECT * FROM duelos WHERE status='desafiado' AND desafiado='?'";
$statement = $mysqli->prepare($query);
//bind parameters for markers, where (s = string, i = integer, d = double, b = blob)
$statement->bind_param('s',$desafiante);
$statement->execute();
if($statement->execute()){
print 'Voce foi desafiado por $desafiante <br> Aceitar o desafio? <br> Sim - Nao';
}else{
print 'Nada a relatar';
}
$statement->close();