Posts by William • 573 points
4 posts
-
0
votes5
answers2514
viewsA: Secure API does not return purchase status
To receive the automatic return of Pagseguro, it is necessary that the server where your application is located is with Modsecurity switched off. Modsecurity is a firewall for web application that…
-
52
votes9
answers12451
viewsA: How to prevent SQL code injection into my PHP code?
There are several ways to prevent Sqlinjection. Two examples are: Php’s mysql_real_escape_string function A generic form Prepared Statements The really efficient way I recommend that you read the…
-
1
votes10
answers29077
viewsA: Scroll through an Array and check if any element is empty
You can choose to sweep the array and close the loop as soon as the array finds an empty element: $erro = false; foreach ( $meuArray as $valor ) : if ( empty($valor) || $valor === null ) : $erro =…
-
4
votes2
answers1593
viewsQ: Checking empty column with CASE in Mysql
I’m having a hard time making a query in a customer table. I need to find two columns (nomeCli and nomeFantasiaCli) and turn them into one: Nome. In short, when the client’s name is not filled in…