Questions tagged as 'array'

0
answers

array list with equal values

I have a list of arrays that I bring from a database query, within that query I have the same products, how do I store all elements that are the same in another array? array: 6 [▼   0 = > {# 209 ▼ +"Cod_Produto": "1002" +"Produto": "Soja...
asked by 10.09.2015 / 16:58
2
answers

Adding numbers from an array

I'm using a loop to display all the answers from a respective column of my bd. But I need to add all the numbers contained in this array. Code I am using: <?php $host = "xxx"; $db = "xxx"; $user = "xxx"; $pass = "xxx"; // conecta ao...
asked by 06.07.2015 / 16:53
0
answers

Filtering PivotTables in VBA

I have two PivotTables and I want to always select the same item in them, which in this case are names. So I have a rule that picks up the names in another worksheet and the number of pending issues, if the person has more than 20 issues, it sho...
asked by 30.06.2015 / 13:28
0
answers

Passing sql in array index CAKEPHP

I need to do 3 queries, if x icon is enabled, make X query. If it is the y icon, query y. If the 2 are, I want everything from the query x and y. I can get the query x and y, but at the time of getting all of the 2 queries I can not. Ifs t...
asked by 01.06.2015 / 17:21
0
answers

Create a Dynamic Matrix using AngularJS

I need to create a Dynamic Matrix where the user inserts the size of it. This Matrix must be using Div and not Table of HTML, and the content to be displayed within the Matrix is in images and must be navigable using both the Mo...
asked by 03.06.2015 / 19:37
3
answers

String Replacement by Array

I want to make a string already defined be replaced by an array . For example, the value of the string is $ . I want it to be replaced by dollar sign . For this I created an array with the replacement data: $arr_symbols = array(...
asked by 25.04.2015 / 04:23
1
answer

How to create a vector that displays the frequency of each element in an array?

"Write a Freq. method that receives data from an array A that has integers between 0 and 0, generates a vector with the occurrences of each integer between 0 and x. that takes a vector of integers and returns the largest element of the vector...
asked by 07.12.2014 / 19:16
2
answers

PHP with HTML - Put an array inside a select html

Hello, I am a beginner and I am with the following question, I have an array, where one of the parameters comes from the bank, where the number 5 is from the bank. $inicio = 1; $ultimo = 5; //esse valor vem do banco. $arr = range($inicio, $ult...
asked by 26.12.2014 / 16:55
1
answer

Sorting an Array

I have my class ItemList public class ItemListPropaganda { private int iconeRid; private String texto; private int valor; public ItemListPropaganda(String texto, int iconeRid, int valor) {...
asked by 15.10.2014 / 18:28
1
answer

How do I use addObject inside an Array?

I have an NSMutableArray * arrayFavorites I can not log in { name1 = 6; name2 = "Paolo Rossi\nIt\U00e1lia"; name3 = "cartaz-1982.jpg"; photo = "copa8.jpg"; name4 = 24; }, { name1 =...
asked by 25.05.2014 / 19:04