Questions tagged as 'while'

1
answer

Group Query Results

The procedure below makes a query per day between the start and end dates, so it brings up multiple queries, is there a way to group all queries generated in just one? Also, how to eliminate the empty results? DELIMITER // CREATE PROCEDURE pro...
asked by 23.06.2015 / 01:42
0
answers

Loop while showing only the first record of the database

Hello, my system has a problem, I have 2 tables: alunos id | nome frequencia id | id_aluno But in the while loop where I connect the two tables by id and id_aluno , it only displays the first record of the database, and there...
asked by 30.11.2018 / 11:43
1
answer

My script that searches for a string in another is taking too long

My script loads the command1 (file1) and saves the first column of all rows in a vector, later it will look for each substring of that vector in a file 2 (of command2). The problem is that file 1 has about 3,000,000,000 lines and file 2 has abou...
asked by 18.11.2018 / 15:12
3
answers

How to make the first two numbers of a Math.random sequence are not EQUAL

I made a lottery system in order to learn, I will not post the whole code here just the part that I am packed. It is as follows: The draw of the PC is a sequence of 6 numbers that I present in the DOM (it does not matter), so I want the first...
asked by 05.10.2014 / 07:02
1
answer

Put the angularJS switch function inside loop while php

I put the swicth function of the angle, within while in PHP. When executing only the first loop that works the rest, the function does not work. I have already put the names ng-app and ng-controller different all loops, but even so only the firs...
asked by 23.10.2018 / 01:32
1
answer

How to declare null values in C

My problem is the following I am creating a loop while that can not receive values smaller than or equal to zero, and would like to also declare that it can not receive empty values for the program to force the user to enter a number an...
asked by 09.10.2018 / 14:29
2
answers

Error fetching the result of a select

Someone can help me with this code. Give this error: Warning: mysql_fetch_array () expects parameter 1 to be resource, boolean given in /var/www/xxx/teste.php on line 14 Notice: Undefined variable: status in /var/www/santa/teste2.php on...
asked by 20.09.2018 / 14:58
3
answers

How to make the first two numbers of a Math.random sequence are not EQUAL

I made a lottery system in order to learn, I will not post the whole code here just the part that I am packed. It is as follows: The draw of the PC is a sequence of 6 numbers that I present in the DOM (it does not matter), so I want the first...
asked by 05.10.2014 / 07:02
0
answers

"SIGSEGV ON THREAD", does anyone help me to solve, and also if possible, to complete the program?

It's the following, I do an info technician, and I'm learning C just two months, and I know little yet. Recently my teacher asked to make a program in which user entered with two number num, and that each position of two vectors n, were filled i...
asked by 19.06.2018 / 02:36
0
answers

while inside a php variable with html text

I have a page for registering and editing guesses of a soccer ball. By registering the guesses the user receives the list of guesses registered by email. The registration of the guesses and sending of the email ok are working, what I need and I...
asked by 19.05.2018 / 23:07