Questions tagged as 'php'

1
answer

Page layout controlled by javascript using REST for dynamic content

I was thinking of a different pattern for developing my application via browser. As this is an ERP, I need a quick interface that does not need to download the HTML from the server at all times to print the user's screen layout. The solution wou...
asked by 08.07.2014 / 18:44
2
answers

Insert a select into a td by double clicking it is possible?

Hello, I have a dynamic table that works fine, but since the field is an input people can type anything, but I wanted to limit this edition using the option options, the table I use the id="tblEditabel" and in the rows which will work with...
asked by 18.02.2017 / 14:20
1
answer

How to transform Array into different variables?

I have the following array which returns me the following values: ( [cliente] => Array ( [0] => Array ( [Code] => 1 [Name] => a...
asked by 22.10.2016 / 15:08
2
answers

Check if difference between dates is longer than X minutes in PHP

First of all, I've done a lot of research here on the site and found no more in-depth example, just basic questions / answers about how to get the difference between dates, what I got to do and it works the way I want. > However, the code I cu...
asked by 05.10.2016 / 01:51
1
answer

How to pass an array in a WHERE condition

$this->db->set('al_reg', $matricula); $this->db->set('dataagendamento', $dataagendamento); $this->db->where('cod_lab', $laboratorio); $this->db->where('cod_horario', $horario_prova); $this->db->where('cod_data', $dat...
asked by 18.10.2016 / 15:31
1
answer

Where is the error that I can not see?

What happens in jeans_status and jeans_opcao it works a beauty more in the first if does not work, it enters if without checking whether imagem_status == 1 and imagem_opcao == 'galeria_imagem' . Can anyon...
asked by 10.10.2016 / 16:38
3
answers

I can not access the property of the object. Laravel / Eloquent ORM

I can not access the properties of the related object. Well, I have a class named FileClass , it has the following relationship with class FileServico : FileClass.php public function fileServico(){ return $this->has...
asked by 05.06.2014 / 18:59
1
answer

In the specialized class should I use self or parent to access the variables?

I have two classes, an abstract ( Connector ) and a specialized class ( ConnectorWmi ) that extends Connector . My question is, considering the code below, in the specialized class I should instead call self :: $ connection , call parent :...
asked by 19.11.2016 / 21:13
1
answer

assign a value to the javascript variable

The problem is the following php returns me several buttons with a hidden input to identify the button. $nome = $mysqli->query("SELECT * FROM menbros ORDER BY id"); while ($row = $nome->fetch_assoc()) { $nome = $row['identifier']; $i...
asked by 06.11.2016 / 18:21
1
answer

Working with string php [duplicate]

I have a project to issue the bank transfer file for banks and credit unions. In the assembly of the file I define a variable and I add the lines as in the example below: $conteudo .= '085';...
asked by 04.01.2017 / 19:22