Questions tagged as 'array'

0
answers

Insert data from a while while mouncing the form into the mysql database

How to get the values of the inputs that come by array because the form is fed by the client follows the form code, give him as many questions as he wants in my poll system, and create the answers .. wanted to know how to get the value of the fi...
asked by 08.03.2016 / 18:23
1
answer

Sending responses from a php poll via array to an email using the mail php function

Good morning everyone, I would like to know if I am receiving the values from my form correctly and sending them by email using an array to list questions and answers from the poll. follow the code. $meuArray = array( 0 => "$pergunta_pr...
asked by 07.03.2016 / 14:09
1
answer

Group values from an array into zones based on another PHP array

Hello, I have two arrays where the $ key are the same for the two as a function of the time they were registered. The first array is a timeline in seconds of the activity and the second array is the Heart Rate (CF) p> $arr_time = A...
asked by 27.02.2016 / 20:45
1
answer

Manage session as array

I want to know if there is any way I can save two values in the same session variable as if it were an array, since I want to save both the input text value and the wysiwyg element by clicking the "save chapter" button in the image. , I tried to...
asked by 21.02.2016 / 03:49
0
answers

How to construct an Object with an Array inside, using Eloquent Laravel

Hello everyone, I need to build a array as follows for a plugin: var data = [{ "label": "Follows", "color": "#aad874", "data": [ ["Seg", 50], ["Ter", 84], ["Qua", 52], ["Qui", 88], ["S...
asked by 07.02.2016 / 04:02
2
answers

Saving data in an array in Rails

I need to store data from a database search in an array, but with the code below it only stores a value in the array. @busca= Item.find(:all,:conditions=>{:codigo=>params[:codigo]}) @busca.each do|buscador| @novamatriz=Array.new @novamat...
asked by 22.02.2016 / 14:10
0
answers

How to extract data from this type of array? It's a WordPress query

I need to extract the e-mail and nome from this user but I do not know how to proceed in this arrays format. Can you help me learn how to extract this data and write it to a variable?     
asked by 22.01.2016 / 01:28
2
answers

Problem with vector comparison - Java

I have a problem with a simple Java code, I started right now to learn the language. The exercise consists of comparing the values of the vector to see if there are repeated elements. The problem is that it always gives me 0 in the output!...
asked by 25.02.2016 / 02:23
1
answer

Variable declared in viewDidLoad is not found in Button - Swift 2

I have an array that generates a word by loading viewController , and saves a random position in the variable declared in viewDidLoad or before within the class. But inside the button does not find the variable to receive and use th...
asked by 11.10.2015 / 22:15
1
answer

Running the script after clicking a link

I'm learning PHP and my challenge is to make a Shopping Cart using SESSION. In my logic, I am trying to run a array_push , after clicking the "insert product in cart" link, from the product page and thus "fill" the array created...
asked by 21.10.2015 / 18:22