Questions tagged as 'php'

1
answer

Times consultation with Guzzle supposedly parallel mind does not work

I am trying to consult several different webservices in parallel with Guzzle (in laravel ), but when I take time, I understand that it is being done sequentially, one by one, instead of all together and at the same time. The individ...
asked by 27.11.2017 / 14:52
1
answer

Read value of an array json_encode laravel

I did a query to the database ( BD ) which then transforms by means json_encode() to show it in the view blade and the result is this: [{"monto":"44"},{"monto":"0"},{"monto":"5640"},{"monto":"0"},{"monto":"0"},{"mont...
asked by 27.11.2017 / 16:14
1
answer

google chart PHP and Mysql

Good morning, I am making an application in PHP and Mysql to manage the reports attended in a customer service office of a water and sanitation services company. At the moment I am trying to generate graphical statistical reports u...
asked by 24.11.2017 / 15:32
1
answer

Limit number of characters in a textarea control that has the tinymce plugin

I have a textarea in a form, which has an editor so that the user can give different formats to the text. I do it with tinymce. Now, I need to control the amount of characters that you enter, so I do not want you to enter more than 200 (say a nu...
asked by 23.11.2017 / 22:41
1
answer

Own Javascript is not recognized

I am developing an application in XAMPP with PHP and JS. I have the folders arranged in this order: 1) app/asset/css (I save the css files, 'bootstrap' and my main one) 2) app/asset/dist (I save the js files, 'bootstrap',...
asked by 24.11.2017 / 23:39
1
answer

Tour an array with php

I have this code that generates an array automatically with the data of a query: $Codigos = array(); while($row = mysqli_fetch_array($RPedidos)) { $Codigos[] = $row['id']; } $Idpedidos = implode(',', $Codigos); I convert it to a value separ...
asked by 01.12.2017 / 14:34
1
answer

Why does a var_dump return an empty array and an object?

It turns out that when I do var_dump of a variable that I receive from a webservice I receive this: $ta = $this->GetServiceTA("ws_sr_padron_a4"); var_dump($ta->token);    array (0) {} object (SimpleXMLElement) # 10 (1) {[0] = > str...
asked by 23.11.2017 / 21:18
1
answer

Perform INNER JOIN correctly

I have 2 tables t1=quotations and t2=quotation_has_packinglist in which I have repeated the fields email and date , in order to get the information from the table quotation_has_packinglist and show it in the vie...
asked by 01.12.2017 / 22:34
1
answer

How to connect to a WEb Service Rest

Good morning. I have to connect to a Web Service Rest to validate CURP with php, I have the url, the username and password of the WS but I have not been able to find the way in which I must connect, I attach the form in which I must send the dat...
asked by 01.12.2017 / 17:04
1
answer

return two views in a Laravel 5.5 driver

I would like to know if I can return two views in a laravel driver, the version I have is 5.5 and I am trying this way: Driver: $info1 = [ 'datos' => $datos1, 'nombre' => $nombre...
asked by 30.11.2017 / 13:52