Questions tagged as 'array'

1
answer

Regular expression in PHP

Good night, I need to receive a string via POST, and break it into keywords, but it is possible for the user to separate words in three ways: comma (','), empty space or comma followed by empty space (','). I'm thinking of using the split ()...
asked by 04.07.2015 / 02:41
3
answers

Put an Array in a cookie in PHP

I have a query that returns me the hits of the user who just logged in. I need to turn them into an array and store them in a session and a cookie. Here is the code: //ARMAZENA AS PERMISSOES DO PERFIL DO USUARIO if($sql_permissoes->rowCount...
asked by 06.04.2015 / 14:44
1
answer

PHP Using SESSION with Array

Good night, my goal is when to go back to the products page, and go back to the cart, holding the session variable and also fill the cart page with more products each time the array receives a new one as it is generating one product only. Thank y...
asked by 12.03.2015 / 00:15
1
answer

How can I show the next 7 Days (Agenda) C #

Live, good night I'm working on a C # solution, in which I have to develop a schedule and I plan to show the events (if any) at a certain point, as well as show the following 7 days, even if they do not have marked events. > I developed a m...
asked by 01.02.2015 / 00:26
1
answer

Doubt with binary tree

I have this question: Write a function that receives a tree and an id and returns a vector with the path ids from the root node to the node passed as a parameter. int[] caminho_arvore(Arvore a, int n); Examples: Tree to: caminho_arvor...
asked by 05.07.2015 / 21:27
1
answer

Select rows in a PostgreSQL array

I'm using the PostgreSQL and Python database to query it, I have the following modeling: I'mtryingtomakeaquerythatreturnsallOrderItemsofaOrdertoaarray,forthisImadethefollowingcode:selectARRAY(SELECT'('||translate(string_to_array(x.*::"text",...
asked by 11.12.2014 / 20:57
2
answers

Convert an integer from the database into an Array

I want to convert an integer from the DB into an Array, for example: I have the number of deliveries registered in the DB, let's assume that the 'x' production is completed in 5 deliveries. this number 5 is entered in the DB as a String, a...
asked by 26.12.2014 / 14:49
1
answer

How to retrieve the click on an array of buttons

I'm doing a mine field so I have to add an array of buttons on a panel (to be the houses). I created the array of buttons and added each [x] [y] button to a panel. But I do not know how to retrieve the click on a given [x] [y] button inside my a...
asked by 24.12.2014 / 07:26
1
answer

AngularJs indexOf of Object

Every time I select a bundle, I add in an array, example: Items are some data that I get, I just passed a few to test var items = [755, 20, "E", 274] $scope.selectBundle = function(){ var info = { cod: items[3], bundl...
asked by 24.11.2014 / 20:26
1
answer

Transform javax.persistence.Query to ArrayList

It is possible to transform a javax.persistence.Query into ArrayList . I need to return an object of type Query but can not have all result values. I want to delete some results based on some tests, the code is below. I...
asked by 13.11.2014 / 03:24