Posts by Kaique Garcia • 151 points
2 posts
-
2
votes1
answer100
viewsA: Change the order of a result in PHP WHILE from Mysql
First you must get the cat_id relating to cat_nome "Others". This way you can make an ordering with case test: SELECT cat_id, cat_nome FROM categoria WHERE cat_id_pai IS NULL ORDER BY (CASE WHEN…
-
0
votes1
answer223
viewsA: HTML5 and PHP form all on the same page
CASE 01: just create a parole and fire some error if you pass... if($rcb_visitante == $rcb_mandante) { echo "O mandante não pode ser igual ao visitante."; } CASE 02: just add two variables:…