Questions tagged as 'array'

2
answers

Error Undefined offset in PHP (Create table with stored procedure result)

I need to print the sales of the operators of each day, we do not take into account the holidays on weekends. I get the following error    Notice (8): Undefined offset: 1 [APP / View / Reports / getventas_asistencia.ctp, line 63]       Not...
asked by 18.01.2018 / 21:42
2
answers

Go through an object with Vue2.js

My question is how do I access the parish array ... try the HTML to do: {{@beneficiario.parroquia.parroquia}} y and gives this error:    Error in render: "TypeError: Can not read property 'parish' of undefined" HTML        ...
asked by 19.01.2018 / 21:31
1
answer

Array in nodeJS loses its elements

Good afternoon, I have two array: usersConnected and users . I am working with NodeJS and Socketio developing a chat. To obtain the connected users I create a UID in LocalStorage same that I get through socketio....
asked by 13.12.2017 / 22:57
1
answer

Mix two arrays in one (three in three). Java

I need to mix two arrays into one whose lengths we insert and fill with randoms. The question is that I have to mix them in the following way: three first of the first array, three first of the second array, three of the first array, three of th...
asked by 02.12.2017 / 13:19
2
answers

Show a specific data of an associative array

A question about managing arrays in PHP. I have this array: $curso = array( "DAW" => array( "1º SI" => array("horas" => 230, "plazas" => 30), "1º BD" => array("horas" => 200, "plazas" =>...
asked by 24.11.2017 / 19:40
1
answer

Browse array 1 dimension, intermediate code (3 addresses) C ++

Good evening, I am programming a soup of letters in c ++ with intermediate code or three addresses and then pass it to the GUI TASM assembly. What the program should do is print a one-dimensional array with the letters, and move around the array...
asked by 21.11.2017 / 07:54
1
answer

How to use implode with arrays obtained from Mariadb PHP columns?

Hello, I am trying to return an array for each column of a query where it meets a condition where, and to each element of the array of each column add a ',' but I can not find how to do it, I leave my code: $sql = "SELECT producto, unidad, can...
asked by 05.10.2017 / 08:30
1
answer

Go through and save data from an array with laravel 5.1?

I have the following case, I am sending from the view to the controller some data in the following way: <div id="modalities_1"> <div class="col-md-12"> <h3>Modalidad</h3> </div> <div class...
asked by 29.09.2017 / 16:34
1
answer

Error Validating Stock when updating a sale

I have a small bug with a Sales system, for which I show and explain first the two functions where I have the problem, the following function is executed when you add details to the sale: //*** Declaración de Variables necesarias para tr...
asked by 03.09.2017 / 01:16
1
answer

Navigate array accessing attributes of child classes

I have an array of type Relacion , which is filled with objects of type Binario . Binario inherits Relacion . How can I get the values of the attributes of binary objects? Relacion exprs[] = { new Binario(Operador...
asked by 26.08.2017 / 02:45