Posts by Thadeu • 39 points
4 posts
-
0
votes2
answers300
viewsA: Multiply value in array
Try it like this: int countCards(int [] cards, int BLOCK_CARD){ int quant=0; int count =1; for (int i=0; i<cards.length; i++){ if(cards[i]!=BLOCK_CARD){ count=count*cards[i]; } quant=count; }…
-
1
votes2
answers2667
viewsA: Interactive form in HTML and PHP
First add values for each option in your form because only then will you know which option the user clicked. <!DOCTYPE html> <html> <head> <title>Valor Area</title>…
-
0
votes0
answers215
viewsQ: Best way to loop requests to a PHP API
I am working with an api in which I send a CURL request and it returns me a json the problem is that if I loop in PHP the server hangs and the processing is very slow, a solution I found was to…
-
2
votes1
answer1148
viewsQ: on('click') running more than once
When I click on an area and then on the button. mais1 for the first time performs the function correctly but if I click one area then another and click the button . mais1 it performs the function…