Questions tagged as 'loop'

1
answer

Foreach and multidimensional associative array with only one item

All good personal, I'm facing a problem with foreach in PHP, where I get an xml and convert it to array. In some cases xml has only one item (see example below) <?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> <bloco...
asked by 29.11.2016 / 15:57
2
answers

Inserting a string into a list of ints

I have the following rule: Create a function that receives a list of integers, and replace the items as below: If Multiple of 3 = 'Fizz' if multiple of 5 = 'Buzz' if multiple of 3 and 5 = 'Fizzbuzz' I created the program below:...
asked by 17.10.2016 / 15:48
0
answers

Jquery is loading only the first item in the table

Good morning, I have a table that displays the budgets (coming from the bank) within a while loop ... For each budget there is the button to see more details, where it opens a modal And in this modal, the values of each product are inse...
asked by 25.09.2016 / 14:57
1
answer

Javascript - Execution multiple times

People, good afternoon I have a JS + CSS code to open an image at normal size through a reduced image. I was able to do this with a single image, however, when I put a loop in php, an error occurs. Follow below: <-- Aqui deveria começ...
asked by 10.07.2016 / 20:56
0
answers

Big loop inside of others

The challenge is to find x different ways of dividing the object, for 3 people in which each has to receive a value less than or equal to M, and the sum of the value that each one has had to be equal to N, Here is the code I did: int m,n; m = 9...
asked by 15.04.2016 / 22:40
1
answer

Wordpress how can I create multiple loops in the index?

I'm trying to create multiple loops in my index in wordpress, I wanted to call the posts as follows: Postings: showing only 6 posts. Series: Showing only 6 posts. Recent Movies: Showing only 6 posts but with pagination. I have already trie...
asked by 16.04.2016 / 22:56
1
answer

Error inserting image loop in report pdf reports.dll .net

I have a while that will repeat 3 times an insertion of a barcode however I am using lib reports.dll to create the pdf report. This lib accepts only images saved in some directory (as far as I know), but at the moment I'm going to insert the ima...
asked by 03.03.2016 / 13:49
0
answers

sending email with pause of 2 seconds between emails

I have the Swiftmailer library sending the emails correctly, but I would like to pause for 2 seconds between sending the various emails in my array. I tried to use sleep(2) in the loop, but it does not work. How can I do this? $users...
asked by 15.01.2016 / 12:57
0
answers

sending email with pause of 2 seconds between emails

I have the Swiftmailer library sending the emails correctly, but I would like to pause for 2 seconds between sending the various emails in my array. I tried to use sleep(2) in the loop, but it does not work. How can I do this? $users...
asked by 15.01.2016 / 12:57
0
answers

How to loop within a JavaScript variable?

I have a page index.php . It has a loop that collects line by line from a table of the mySQL database and inserts in the variables that are sent to the file dashboard.js where it has the code below. var visitorsData = { [CO...
asked by 21.11.2015 / 21:52