Posts by Waister Nunes • 36 points
4 posts
-
0
votes1
answer42
viewsA: php code if does not run only Else
The problem is that you are using the empty() to the rec, if the value is 0, PHP considers empty. Change the empty() for isset() that will work. Take the example: if (isset($_GET["salario"])…
-
2
votes1
answer104
viewsA: How to keep the same layout for different versions?
Just inform a background color that it will already lose the features of the version. Example: <EditText android:background="#DDDDDD" />
-
0
votes2
answers165
viewsA: Java Script, PHP - Sends ID of a php loop to a Javascript function
You can pass the PHP code in the function call in onclick and mount the link inside the function: <a onclick="confirma_excluir_cliente(<?=$linha['codigo']?>);" href="#" class="btn…
-
0
votes3
answers346
viewsA: Variable error within the function
For you to use these parameters throughout the application (or in more than one class), the best, in my opinion, is to create a constant. Example: define("ID", $_POST["id_saida"]); define("NOME",…