I'll try to explain it better, like this, when listing something from the database with DESC id it shows something like this:
id:1
id:2
id:3
id:4
id:5
But I want it to look like this:
id:5
id:4
id:3
id:2
id:1
In this case using ORDER BY id ASC will not help me because I need to list several data and with that, the last id's will not appear if I give a LIMIT !.
For those who want to see a piece of code:
public function quadroAlunos($id){
$this->Query = $this->Conexao->prepare("SELECT * FROM quadroAlun ORDER BY ? DESC");
$this->Query->bind_param("s",$id);
$this->Query->execute();
$this->ResultadoUser = $this->Query->get_result();
while($this->Listar = $this->ResultadoUser->fetch_assoc()):
echo "<strong class=aluno>".$this->Listar["nick"].":</strong>"; //Recupera nick
echo "<span class=mensagem>".$this->Listar["mensagem"]."</span>"; //Recupera Mensagem
echo "<span class=hora>".$this->Listar["data"]."</span>"; //Recupera hora da postagem
echo "<br /><br />"; //Quebra de linhas
endwhile;
}