Posts by Allan Klaus • 11 points
2 posts
- 
		0 votes4 answers4554 viewsA: GROUP BY and ORDER BY MysqlThe query order is first GROUP BY and then ORDER BY That would be SELECT * FROM tabela WHERE id_cliente = '$id_cliente' GROUP BY ano ORDER BY ano DESC… 
- 
		1 votes2 answers110 viewsA: Problems in using php InsertYou are mixing PDO with mysqli_query are separate things. to use the PDO your query that is like this mysqli_query($con,"SELECT * FROM CADASTRO WHERE USUARIO = '$usuario'") would have to be like…