Cita:
Iniciado por pateketrueke
Si, entiendo. Pero se sale del tema de PHP, porque el lenguaje SQL es completamente independiente.
Error...
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '='user'' at line 1
Código PHP:
$sql = "SELECT * FROM mensaje ORDER BY para DESC ='".$_SESSION['usuario']."'";