Questions tagged as 'while'

1
answer

In R: how to group the results of a loop in an rbind function?

Since I have a dataframe called page whose number of rows changes regularly, I wrote this code so that it fits the number of rows that my page$id has and I wrote this while so that it will generate a "g_com[numero]" fo...
asked by 09.05.2017 / 07:03
1
answer

Select limiting query, and does not display the last queries

In this script, it is limited to displaying 6 queries in SELECT in the variable $ amount_pg = 6, I used the IF to inform that all news situations other than 2 (unpublished) should be displayed. Home The detail is that in my SELECT, in order of c...
asked by 09.05.2017 / 21:18
1
answer

because the iteration of the x of the input does NOT interfere in the iteration of the x of the while loop, and is it the same variable?

I'm learning programming logic with Python and I do not understand how the x of the input does NOT interfere with the iteration of the while loop, since it is the same variable. Please, I would like you to explain, valew !!! #!/usr/bin/python3...
asked by 29.03.2017 / 17:42
2
answers

While on dynamic carousel

I'm trying to display the images in the Bootstrap carousel with the while. I can access the array with all urls, but I am not able to insert in the while in the img tag, I tried while with foreach to display the images but it is not working....
asked by 04.02.2017 / 14:47
1
answer

Simple While Cycles

#include <stdio.h> main(){ int cont=15; while(cont<=200){ printf("%d\n",&cont); cont++; } } Supposedly the counter should start with value 15 and go showing its value by adding 1 at the end of ea...
asked by 20.11.2016 / 13:33
1
answer

Error in capturing information in files using the fseek () function ... What is the problem?

I'm having trouble with an info capture function from a file with the fseek () function [I do not know if there is a better alternative ...]. Returning to the problem, I want to read a file that has: "2165327575 R" "7625621 W" and so on ......
asked by 21.11.2016 / 13:06
1
answer

How can I build a loop with the bootstrap grid in several sizes?

I'm currently working with wordpress and came up with the following question ... My current loop is like this ... (8 Items) COL-MD-6 COL-MD-6 -------------------------- --------------------------...
asked by 29.08.2016 / 20:47
1
answer

I can not make the limitation [closed]

Hello, I have the following problem: When I press the button it generates 24 more images, this is not my desire, I want it to continue only 24 and only change for the following. ( see here ) code: <head> <title>Hebbo Gadget...
asked by 12.06.2016 / 17:13
3
answers

return fetch_object ()

My script is a function (query.php) that does a query in the mysql database and with the while I go through all the contents of the object ($ qr = $ query-> fetch_object ())) If I give a print_r here inside I can see all the data but when I try...
asked by 06.04.2016 / 22:08
2
answers

How to perform update on records marked with checkbox in a while

I'm not able to UPDATE the fields that are only selected by CHECKBOX, which I was able to develop below: BD.SQL CREATE DATABASE IF NOT EXISTS 'seq_acessos' DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE 'seq_acessos'; CREATE TAB...
asked by 07.04.2016 / 23:50