Questions tagged as 'loop'

1
answer

Save single row in DB, the result of the PHP variable (WHILE / LOOP) of a MYSQL Query

I have the following problem: When performing a query, the result of the while is composed of more than one value, for example: $query_sku = mysqli_query($connect, "SELECT t.column_name FROM skus AS s INNER JOIN table...
asked by 04.01.2019 / 15:12
1
answer

Creating Loop Objects

class linha (): def __init__ (self, texto): self.texto = texto def criador (): for i in range(5): a = raw_input ('escreva: ') global objetoi objetoi = linha (a) How do I get the criador function t...
asked by 04.05.2014 / 04:51
1
answer

Iterate values of two requests in * ngFor

I'm making two requests in the database, one brings the grouped requests just for preview on the front, the other brings all the values, the latter needs to show the total of each request along with the first request view. listOrders() {...
asked by 03.12.2018 / 15:38
1
answer

Warning looping Python Pandas, How do looping differently?

Personally I'm doing this looping here: for i in range(1, len(candles)): if candles['askclose'][i]> candles['askopen'][i]: candles['Fechamento'][i]= 'alta' But the jupyternotebook always returns this warning and sometimes han...
asked by 07.12.2018 / 00:30
1
answer

Difficulty implementing chessboard [closed]

I need to implement the code that manages a chessboard in ppm. It would be in the standard 8x8 format, with the user's option to set the pixels quantity, the doubt would be at the time of looping to "multiply" the pixels. In the code below it is...
asked by 01.10.2018 / 04:48
1
answer

Data coming from Firebase takes time to finish loading and disrupts the ordering of objects

I'm trying to sort an object by a value that comes from Firebase. I use a JsonParcer class to list the database and according to the ID get the field I need in Firebase, which in the case is a coordinate so that with it I calculate the distance....
asked by 26.12.2018 / 00:32
0
answers

Javascript copying content from another DIV that is not for copying

Can anyone help me please? The script I did is to transform the curriculum matrix that is in an ul into separate columns, but it is catching the curriculum matrix of other courses. I remember how to separate this by selector, but I can not un...
asked by 12.09.2018 / 15:43
1
answer

I can not execute the jquerry loop

I need to create a loop for msm to feed a graph. while($(".previsto").eq(0).text(),){} I need to get these values eq (0), eq (1), eq (2) ... $(".previsto").eq(0).text(), $(".previsto").eq(1).text(), $(".previsto").eq(2).text(), ...   ...
asked by 27.08.2018 / 21:21
0
answers

Loop, For, PL / SQL Cursors (Doubt)

Good morning, my doubt is as follows, my table is like this currently: Nome Idade ID João 5 Lucas 5 João 2 Lucas 1 I wish it looks like this: Nome Idade ID João 2 1 João 5 2 Lucas 1...
asked by 30.01.2018 / 14:04
1
answer

Dictionary and repetition structure

The problem asks me to count the size of holes in the text exp: A, D, R, O, P has only one hole, and B has two I made the following code: qnt = int(input()) cont = 0 l = [] for i in range(qnt): txt = input() dic = {'A':1, 'D':1, 'O':...
asked by 24.12.2017 / 19:19