Posts by guilherme • 131 points
9 posts
-
1
votes0
answers398
viewsQ: Nfephp: Generate footnote XML template 20
I need to generate the service invoice XML (NFS-e) template 20. looking at the Nfephp documentation, I noticed that it generates XML but in model 55 that is the sales tax note of products. Does…
-
0
votes0
answers789
viewsQ: Boletophp: Problem when generating boleto do banco do brasil
I am using the project of github BOLETOPHP to generate Banco do Brasil billets, so I passed all the data necessary to generate the billet, as value, due date, account, agency, etc... Then when I…
-
3
votes1
answer2298
viewsA: Calculation of subnets and hosts
I was able to do, that’s the answer for anyone who wants to check: Quantity of Subnets: 2⁸ = 256 subredes Number of Valid Hosts: 2¹⁶ = 65536 - 2 (broadcast e endereço da rede) = 65534 endereços…
-
-5
votes1
answer2298
viewsQ: Calculation of subnets and hosts
I can’t figure out how to calculate this: Determine the maximum amount of subnets, maximum number of hosts per subnet, and for the IP address enter the subnet address, broadcast address, range of…
-
0
votes2
answers110
viewsQ: How to take a value from a Javascript code and use it in PHP?
I want that when the width of the browser is between some values stipulated, my variable $colunas assume different values. I have the following code: <?php $largura = "<script type…
-
0
votes2
answers767
viewsA: How to treat exception that cannot delete as it is a Foreign key
To solve this problem I created a column in my address table called "active", and then instead of doing the delete operation on the address, I just update the "active" column to zero. and in the…
-
4
votes2
answers767
viewsQ: How to treat exception that cannot delete as it is a Foreign key
I am not able to treat an exception that happens when I delete an address that is being used in another table. I’m using the codeigniter my code is: public function…
-
1
votes2
answers5542
viewsA: How to validate a zip code using jQuery.validate
I will use the free webservice http://viacep.com.br/ so it will return me a JSON http://viacep.com.br/ws/01001000/json/ that I will save in an object. Thank you @Sanction.…
-
0
votes2
answers5542
viewsQ: How to validate a zip code using jQuery.validate
I am not able to validate a ZIP code typed by the user. I added the following code within the jquery.validete.js jQuery.validator.addMethod("cep", function(value, element) { return…