Questions tagged as 'while'

1
answer

Unlink is not working inside loop [closed]

I'm trying for some time to delete images from a folder through an unlink inside a loop , in the case while , however I'm encountering the error:    PHP Warning: unlink (admin / imgsupload / 32acafa5b1bac0d2af522f76627e3212.jpg) [...
asked by 18.10.2015 / 02:04
1
answer

Problem in function sup

I'm here with a problem in this function int sup (char s1 [], char s2 []) , that calculates the largest suffix size of s1 that is prefixed to s2. / strong> For example, if you have supre ("cheat", "totality") it should return 4 , since the st...
asked by 21.03.2015 / 16:44
1
answer

Loops do not hold values

Hello! I'm trying to develop a simple program that does an automatic accounting calculation, however, the condition within the for (while, do, while, if / else, any) does not keep its values. The repetition is executed 12 ~ 13 times and in all t...
asked by 23.10.2014 / 15:33
1
answer

How to put a layout for the search results of an input search that are within the echo?

I need to put a layout in the search results of the input search, I have a page that uses the layout of Cards of bootstrap 4, and I wanted the search results to look the same. This is the script I use in the layout of my other page: <div cl...
asked by 11.09.2018 / 23:31
1
answer

Array counter with while in JS

I need to count the elements of an array using the while loop and display a alert() , but it is not displaying the count in the browser . Using for worked fine. I leave my code below: var deuses = new Array(); deuses = ['...
asked by 25.07.2018 / 15:24
1
answer

Parse txt file and return it in another file - Python [closed]

Good evening! It has a file with numbers, saved in txt format, each number separated by space, there being a list with about 50 values in each line of the txt file (and more than 10,000 lines in the file): 78 34 85 67 96 197 etc. I want to...
asked by 18.07.2018 / 02:12
1
answer

show the value of the children inputs of divs js

I need the for / while to display on the screen the string placed in the input of the first div the first time the loop is executed and the second time it shows on the screen the string placed in the input of the second div and so on. > <...
asked by 06.07.2018 / 16:27
1
answer

Inner Join with repeated values

Good morning! Can anyone help me with a question? I have a select SELECT * FROM order INNER JOIN kn_status ON (kn_order.n_order = kn_status.fk_order) WHERE kn_order.fk_cliente='$id' The problem is that in the STATUS table the N_ORDER...
asked by 23.05.2018 / 15:08
2
answers

Higher and lower value problem with while. (Without using list!)

Write a program that reads an integer N and then read N  real numbers, separating the smallest and largest, presenting them on the screen. N = int(input("Digite N: ")) i = 0 ma = 'maior' me = 'menor' me = x while i < N: x = float(input(...
asked by 29.03.2018 / 16:19
1
answer

Infinit Scroll - does not bring all DB data

I'm trying to implement an infinit scroll in my project, but I'm having trouble solving this problem The connection is perfect and I'm getting the DB information, but the code only shows one entry, what should I change to resolve this? Cod...
asked by 05.02.2018 / 22:56