Questions tagged as 'foreach'

1
answer

Store values from a data set in ASP.NET variables

I'm having problems getting the return of a select variable, I'm using a data set to create a table with the result of select, that select will return some records and form that I'm doing just get the first value, I already researched how to do...
asked by 28.06.2017 / 21:00
0
answers

Best way to use Foreach

I have a lot of code, but I do not think it's one of the best, because I'm a beginner in programming. The values are coming in duplicates, I'd like to know if the way I'm performing the code is correct and how to make the values not duplicate:...
asked by 13.06.2017 / 21:42
0
answers

Problems with foreach in php

I made a foreach with PHP and a .json file to simulate a mini store inside a thumbnail in a slide , but it is not appearing properly side of the other as it should be. I wonder where I'm going wrong. How are you curren...
asked by 14.06.2017 / 04:44
1
answer

How to send simultaneous e-mail with laravel

I need my system to send simultaneous e-mail to all the emails that are in the bd. Following the code below it only sends the 1st e-mail from the list and still sends the wrong one. Send pro spam. And the msm code I use in the form d contact tha...
asked by 23.05.2017 / 20:42
1
answer

Duplicate repetition

I have a problem with the repetition of my result, in fact I can not find a solution. Notice that in the image below we have the order number and the parcels, but this order number always repeats when a new parcel is requested. it does not repea...
asked by 20.06.2017 / 02:02
2
answers

Laravel's JSON return is asynchronous?

I have an API in Laravel, with a show(id) method that returns a response->json($array) . Within this function I have a foreach , my problem is in response , which does not wait for the foreach to finish and the...
asked by 16.03.2017 / 21:59
0
answers

foreach recording several times in BD

Personal to making a product entry form (NF mirror) which has the option to clone the lines to include more products. This form writes to 2 tables the 1st header of the NF and the 2nd saves the details where the product ID has the quantity th...
asked by 12.04.2017 / 16:02
1
answer

Check selected categories

I need to check if the categories chosen by the user exist in the categories suggested by the php system I have been able to write to the array the categories chosen by the user and also categories suggested by the system. foreach($array_id...
asked by 15.03.2017 / 16:04
0
answers

How to loop inside the foreach

I'm having trouble making the code roll. I have the variable $posts_metas that can be empty or have an array, it depends on what the user has already registered in the DB. I also have the $uls containing urls of the images th...
asked by 02.02.2017 / 18:18
1
answer

Foreach and multidimensional associative array with only one item

All good personal, I'm facing a problem with foreach in PHP, where I get an xml and convert it to array. In some cases xml has only one item (see example below) <?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> <bloco...
asked by 29.11.2016 / 15:57