Código PHP:
"SELECT * FROM mensajes WHERE (categoria = $categoria_msg) ORDER BY id DESC LIMIT 20"
Código:
Cual es el problema?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 'categoria1) ORDER BY id DESC LIMIT 20' at line 1
Como ven la variable $categoria_msg tiene un valor válido, existen la BD más de 20 mensajes con esa categoría.
Muchas gracias desde ya !
