Questions tagged as 'array'

1
answer

in_array php - poo

I have an object in which there are modules in the form of an array. What I want is that when I click on Select, on the right side they can not appear repeated. It does not give me errors but it does not perform the function that I want....
asked by 25.01.2018 / 20:14
1
answer

Print Image Array in PHP Horizontally

I have the following code whose function is to load an array with a piece of html code that prints an image. Such a code does its job, however when displayed on the screen, the images are printed one below the other as shown below. I need to sho...
asked by 14.02.2018 / 01:45
0
answers

Empty an array in while

I have the following problem, in an arrangement that I fill in another page I have names of fields of a bd, what I want is to make a query select but with the fields of my arrangement Here I bring the fields of the bd that I choose on the pre...
asked by 18.12.2017 / 17:21
1
answer

Filter multidimensional array PHP

I have the following array. Array ( [54190] => Array ( [Repartidor] => RETIRO ANDEN ANDEN [Productos] => Array ( [CONFITES] => Array ( [200...
asked by 07.12.2017 / 19:50
0
answers

Uncaught Error: Call to undefined function createTitles ()

Good morning I am trying to create a function with php that fills in the title fields automatically, but when I try to pass the arrangement where I have my titles, I get the following error: "Uncaught Error: Call to undefined function createTitl...
asked by 04.12.2017 / 15:52
0
answers

Pass list from String to JSON Object

I have a JSON list but it returns the following: {"product":"[[\"5a10de2d8bb9d715c320acd8\", [\"5a08d4495d0e296cab3b5637\"]]"} It is not a correct JSON. I have a String list where I store the values and then pass it as a parameter to th...
asked by 19.11.2017 / 15:59
1
answer

Program in C does not add well the elements of a vector

I am doing a basic program in C, to calculate notes. It consists of an array in which some notes read by keyboard are stored. Once they are introduced, they are added one by one and stored in a variable. The problem is that it does not add th...
asked by 15.11.2017 / 17:32
0
answers

Copy a value from an input into many other input with the same ID Drag and drop

I need to copy the value of an input in the specific position where it is released. My problem is that all the input have the same id, so the value is only copied in the first input of the form to be dragged. Try listing the id where you drop th...
asked by 13.11.2017 / 00:10
1
answer

Error Uninitialized string offset: 2 when trying to save array data in database

Hello friends, I have this error when trying to save the data in my database, I think the problem is how to save the arrays, thank you for your help. $pensum = new Pensum (); $pensum ->carrera = $request ->carrera; $pensum -&g...
asked by 03.11.2017 / 23:50
2
answers

Problem when inserting value of an array in BD

This code does not insert the path in the database. Instead it inserts the value when the array is set to VALUES as such, thus; ". $ array [0]."   When echoing the variable $ path0 1, 2 prints the value. Where can the fault be? <?php in...
asked by 26.10.2017 / 18:35