Questions tagged as 'array'

0
answers

Error when searching for letters in a string with PHP

I'm building a college project, a lexical analyzer. I was able to set up the entire structure, but my teacher asked me to click on "space" to continue searching for letters. My problem, if the word is the initial, it searches without error...
asked by 26.11.2018 / 14:26
0
answers

problems with PIC + SD + Excel

I'm having some problems here, what's happening is the following, I have a project that I need to simulate a school call on the PIC and make it save in Excel, the project requires that I can change the students' entrance and exit times , and als...
asked by 25.11.2018 / 05:30
1
answer

JSON error with Alphabetical index

I have 2 Arrays : Array (     [0] => Array         (             [0] => Amit             [1] => [email protected]         )     [1] => Array         (             [0] => Rahul             [1] => [email protected]         )...
asked by 30.11.2018 / 15:54
0
answers

Group Array data when same php ID

I have an employee list array and they can have more than one linked code and for this I need to group in a list of type FULANO - SECTOR - REDUCED CODE / REDUCED CODE Doing a select I can not bring the information by a subconsulta de um...
asked by 10.12.2018 / 21:16
0
answers

Delete selected file from a list and subtract from the total value - Ionic

I'm developing an app with ionic 3 and Firebase. I am facing problems, therefore, it is not decreasing the value of the product (chosen) of the total. Always subtract the last value informed. Here is the code: deleteProduto(element) { if(this...
asked by 19.11.2018 / 17:00
1
answer

Problems accessing struct members [closed]

I have to do some functions with these structs, but since Agenda has a vector of structs Contact and in each contact has another struct Data, how do I access the fields? Do I have to work each struct separately? Thanks in advance, follow the cod...
asked by 26.11.2018 / 18:47
1
answer

How to arrange an array for odd numbers before even numbers?

I'm trying to make a program that arranges an array to put the odd numbers before the even numbers, this was my attempt, which I'm doing wrong. Code: System.out.print("Indique o número de elementos do array: "); int a = scanner.next...
asked by 13.11.2018 / 22:00
0
answers

How to resolve the error Notice: Trying to get a non-object property of a select with WHERE

I'm trying to display a list of subscriptions for a particular user. The getuser() method captures the id of the session user and displays the list of entries created by it. However, I'm trying to display these records on screen, while...
asked by 18.11.2018 / 22:23
1
answer

Array Limiting via POST

Well, I was getting caught in my code always giving offset error and things like that, when I discovered that somehow my array is not coming full. I have a form, where it is fed according to the results of the database. <?php $Despesas =...
asked by 13.11.2018 / 01:33
1
answer

doubts in array

My program needs to get two vectors, A and B. This defines the set    A pikachu B as the set formed by the elements that appear in A or B. It also has the set    A chikorita B As the set consisting of the elements that appe...
asked by 12.11.2018 / 19:38