Questions tagged as 'while'

1
answer

print quantity of columns of a mysql search in fpdf

I have a query of MySQL in which there may be x number of communications radios stored there, the table prints perfect if I do it without the counter, but as it is necessary to know how many radios there are according to the query, I need...
asked by 21.09.2017 / 05:08
3
answers

PHP Gallery does not load large images. Problem with while

I have been working around a gallery for hours and I can not get it to work, I am a PHP beginner and I would appreciate any help. Attachment code below. In the gallery there are thumbnails and when you click the big picture takes you. The pro...
asked by 27.09.2017 / 20:36
1
answer

Multiple MySQL queries (msqli) in a php file

I have my connection to the bd so $conn = new mysqli(server,user,pass,mainDataBase); un procedimiento almacenado que devuelve una tabla $sql = "call sp_escap()"; $result = $conn->query($sql); y las imprimo en el label while ($r=mysqli_fetch...
asked by 10.08.2017 / 15:36
0
answers

as I pass several variables

I have this function that calculates the distance between 2 points. With a point it works fine, but I would like to do it with several at the same time, and I do not know how to pass the results of my SQL query 1 to 1. <?php function d...
asked by 11.05.2017 / 15:56
2
answers

While in angularjs

I need advice on the following problem: I am working on a number taking software, I have two instances of work. One is the Totem that is where I ask, I take, I acquire my number to be served and the other is the control panel, a Web-app that...
asked by 02.03.2017 / 17:34
1
answer

stays in infinite cycle and can not see why

This is the code: while (op != 0) { op = 0; scanf_s("%i", &op); system("cls"); printf("\n\n"); switch (op) { case 1: printf("Ingrese el numero de cedula del cliente y presione enter: \n"); scanf_s(...
asked by 09.07.2017 / 18:45
3
answers

Program to calculate powers using while in C # (Windows Form)

I have to do a program that calculates the powers of the numbers entered by the user. The problem is that I have to do it using the while cycle and I really do not know what my condition must be inside the while. Any suggestions?     
asked by 25.09.2018 / 01:20
2
answers

what do I have to do to ask me to come back from playing?

Scanner menu = new Scanner(System.in); boolean salir = false; int opcion; while (!salir) { System.out.println("1. Tablero 4 x 4"); System.out.println("2. Tablero 6 x 6"); System.out.println("3. Salir"); try { System.out....
asked by 09.05.2018 / 17:44