Questions tagged as 'bucle-for'

1
answer

SELECT FOR UPDATE MYSQL

I have a simple query that I execute in mysql with phpmyadmin : select * from tabla for udpate ; But I get an error "an expression was expected" . I can not realize what is missing. Thanks!     
asked by 11.08.2018 / 00:17
2
answers

Help creating a Dynamic Insert in PostgreSQL

I have a table Juego which has 4 columns nombre, tipo, autor, proveedor , the function that I create allows me to enter data filtering according to characters correctly, but I would like to write the columns and the value of the arr...
asked by 13.07.2018 / 02:55
1
answer

Join variables in PHP

Hello, I have a form that captures some data, the variables that capture this data are: $parentesco1 = $_POST['parentesco1']; $edad1 = $_POST['edad1']; $NivelAcademico1 = $_POST['NivelAcademico1']; $ocupacion1 = $_POST['ocupacion1']; $salario1...
asked by 18.07.2018 / 04:21
0
answers

how to assign data from a matrix to several objects in python

Good day to all I am programmed a movement in Vpython for which I used a "for" loop that allowed me to create a number of 20 spheres in random positions stored in matrices, after that use a second "for" that It allowed me to create the new posit...
asked by 18.07.2018 / 23:16
0
answers

Help sum and multiplication of php numbers

I've made a store in php I'm on the subject of the cart and I have everything done almost but I get the following problem that I have not yet been able to solve SQL Queries //solo se muestra los productos de la session del nabegador mysqli_...
asked by 08.07.2018 / 19:18
0
answers

I'm having a conflict in the while

I'm having a confection in my while where I have a table of categories and the category ej has 10 categories. The problem arises when throwing the id to review since it is thrown to me 2 onwards: <?php mysqli_select_db...
asked by 30.06.2018 / 21:39
0
answers

doubts about a promise and for Angularjs

The problem I have is that I first do a cycle where I fill an object that later sends the post request, the bad thing is that the promise is executed at the end of the for cycle and not one by one as it should be. Any ideas? ? for (var i = 0;...
asked by 14.06.2018 / 16:49
1
answer

I need the function to read all the data registered in the vecto,

The vector name reads names but when I ask to find one entered in another function only the first one passes or I do not know what I have wrong in the for , but I need you to read any data of the vector, not only the first one. void CON...
asked by 06.06.2018 / 06:01
1
answer

Return multiple values in a For Loop

I am working on a project with Twitter which must be accessed through Tkinter, the fact is that I had first designed a function only in python, I used a 'For' loop and with print I saw what this gave me as result. The fact is that as a Tkinter w...
asked by 08.06.2018 / 03:28
0
answers

Uncaught TypeError: Can not read property 'length' of undefined

Good morning, you will suddenly see this error, it marks me error in lenght, and although I try to save the length of my array in a variable, it does not work either, any suggestions? This is my code, the error is in the second for with newAr...
asked by 22.05.2018 / 17:27