Questions tagged as 'foreach'

1
answer

Foreach with 2 conditions

I'm trying to put two conditions in the foreach, but I'm not having success. The idea is as follows: the client accesses the website at the following URL: / room / balcony and only products that have in their database in the DB the room environm...
asked by 29.10.2017 / 00:54
2
answers

Filling Label with Linq using ToList ()?

I have a table with the following schemas: GarantiaImovel | imovelID | GarantiasTipos 12 | 3 | Caução2 12 | 4 | Depósito 12 | 5 | Caução2 12 | 5 | Fiador 12...
asked by 16.08.2017 / 03:07
1
answer

Break does not work in foreach

I have a foreach inside another foreach that will rotate by several values of a specific object. But I need to stop both foreach's when it goes into if, but the break command does not work for some reason, it just keeps running both forea...
asked by 16.03.2017 / 15:13
2
answers

How to make the variable id not repeat in the loop?

I am trying to get associative%% as argument of this methods, actually receive a array in the first argument and a numeric value in the second. My question is how to make the array variable not repeat? Well, you're giving thi...
asked by 19.11.2014 / 18:53
1
answer

I can not get into the foreach of a blade in laravel 5.7

I have a small problem that I still can not figure out how to solve, I have a View and I can not get into foreach of this same, follow View : <div class="form-group"> {!! csrf_field() !!} <!--{{ dd...
asked by 19.12.2018 / 18:29
1
answer

How to traverse all the records in the database table?

Good afternoon, guys! I'm starting in PHP and I already had a problem. It is as follows: I need to go through all records in the bank table so that I can validate if that value already exists. I'm using Codeigniter and did the following plus...
asked by 05.10.2015 / 19:38
0
answers

Jquery Ajax - During sending - show date return in real time

I want the user to be able to track the progress of each submission in an application. I have one side, sending via ajax, and with php I perform a foreach for batch sending. For example, select the id 1,2,3,5,7, and press send. I want to show on...
asked by 05.01.2018 / 18:32
1
answer

How can I improve this loop that has one foreach inside another?

I am making this code that has 2 foreach's and loads 350 properties with more or less 3500 image links , in fact I did not call the photos, only the links, this everything loads in half a second . The variable $array stores content...
asked by 20.06.2016 / 20:41
0
answers

PHP with PDO returning BLOB records with foreach

Good afternoon guys, I'm new here (first question), but Stack has already helped me in many situations. Here's the problem: I'm developing an application and on a certain page there is a user profile page. On this page, a div that displays...
asked by 05.01.2017 / 20:39
0
answers

Problems generating JSON with JAVA

I'm having trouble generating this json { "receita": [{ "specialtys": [{ "date": "27/01/2016 00:00:00", "itemSpecialtys": [{ "specialtyId": 1, "specialtyName": "Tabelionato de...
asked by 29.01.2016 / 19:47