Questions tagged as 'loop'

0
answers

Save data from the for loop in the database

Good morning I'm developing a financial part where I fill in a certain form that is due date, full value, discount value, school year, discount percentage and installment amount before saving those installments in the database I created a for lo...
asked by 14.09.2018 / 16:50
2
answers

Show first and last record of each date

I would like to search the database for all records according to the "DOCTOR" between two dates DATA_INICIAL and DATA_FINAL Without repeating records of the day. CURRENT RESULTS: BRUNO BARBOSAS 02/04/2018 12:18 02/04/201...
asked by 26.08.2018 / 04:18
1
answer

PHP: Group data without using 'group_by'

Does anyone know how to group data without using group_by in the query? I need every 10 results to create a div , that is, 10 records within each div I do not care about values. <?php foreach($resultados->result() as $resultado)...
asked by 22.07.2018 / 03:50
0
answers

How to create a loop to get all the posts of the network multisites wordpress

<?php $sites = get_sites (); //percorre os sites foreach ($sites as $site) { //seleciona o site através do ID switch_to_blog ($site->blog_id); if ( have_posts() ) {...
asked by 27.06.2018 / 04:20
1
answer

Select from cursor

I'm trying to do a procedure with the following mysql block: DECLARE done INT DEFAULT FALSE; DECLARE v_id INT; DECLARE R CURSOR FOR SELECT id...
asked by 29.06.2018 / 16:21
0
answers

List posts, but only one will have an image

I would like to create a list of posts, but I want only the last inserted post to pull the highlighted image. I use WP_Query to pull the posts, how can I do it? It does not have the same formatting as print, I just want to know how to create...
asked by 23.05.2018 / 18:52
0
answers

Read file and create loop

I have a txt file with multiple column names: Nome 01 Nome 02 Nome 03... In .js files I need to create a loop so that each name is read and loaded into a variable so that the calculations are done and saved to a file with the individual n...
asked by 14.05.2018 / 16:11
0
answers

How to loop in VBA from autofilters using value "differing from"

Good afternoon, doing an automation in VBA in which I need to loop through filters on different lines (sequential values from 1 to 95) but my selection will be with the filter criteria "other than". Copy the excel tab to a new worksheet, sele...
asked by 08.05.2018 / 22:45
1
answer

Difficulty in Loops While and Foreach

I've been studying php a short time so I did not understand the structure of the loops correctly as while and foreach would like someone to explain to me why this while does not display anything, and when I try to use foreach of the error. Thank...
asked by 19.04.2018 / 15:43
2
answers

While inside another While in Java

I'm trying to do a while within another while and after running the code within the second while I wonder if I want to continue or not, if so, the program should loop the first while. It turns out that the loop is only going to the second while...
asked by 03.04.2018 / 05:47