Questions tagged as 'php'

1
answer

Do real-time bank search

How can I do it in PHP so that when the user types in the search field it will already appear the records of the database. For example, supposing that it is a city register, the user type "Field", the records "Campo Grande, Campo Largo, Campo...
asked by 24.10.2017 / 18:05
2
answers

Data received via Request using Doctrine need to be handled?

I'm developing a new project, it's the first time I'm using Doctrine with Silex and I'm in doubt about receiving information through forms. I get data from forms through Request Symfony ( Symfony\Component\Ht...
asked by 25.01.2017 / 14:38
1
answer

var_dump and print_r Not Yet Implemented

I was debugging an instance of DOMAttr with var_dump and print_r and the following error occurred: Example: print_r($domnode); Output: Not yet implemented Instead of displaying data from objeto , that mess...
asked by 10.11.2015 / 15:28
1
answer

Use bootstrap style to generate pdf file with php

Is there a way to use the bootstrap to style a html page that will later be converted into a pdf? I'm using the mpdf60 plugin in php, and I only need the style that boostrap offers to use it in exporting a pdf file. Consider the following cod...
asked by 09.11.2015 / 18:54
1
answer

AngularJS + PHP: How should the data be consumed?

Beginning some readings on the AngularJS for a possible future project, I came to mind some doubts about client / server integration and consumption of the data provided by the server. How should this be done? Through REST , or is there an...
asked by 02.10.2015 / 15:43
2
answers

How do I know if a stdClass is empty?

In PHP, to check if a array is empty we can use the language function (or language constructor) empty . So: $a = array(); $b = array(1, 2); var_dump(empty($a), empty($b)); // Imprime: bool(true), bool(false) But the same d...
asked by 18.10.2015 / 00:35
4
answers

Get checkbox values in an array

How do I get the value of the checkbox in the code below? It is a presence list and this code I modified for one that I use a little different and this way I do not know how to get the values of checked checkboxes in order to be able to in ea...
asked by 18.10.2015 / 21:02
2
answers

Change cell color of a table by changing the backgroud and text to be displayed

Good morning everyone! Gentlemen, it is as follows: I have a table where I load information from the database, and display it on that table. The table is ready and loading the data right. What I need is to change the color of the backgroud of on...
asked by 23.10.2015 / 16:05
1
answer

Variable of type Object within a class

I do not know if it is possible, but I would like to do as%% with the following code in java in JAVA public class Not_req { private Cabacelho_Req cab; private Requisicao req; public Cabacelho_Req getCab() { retu...
asked by 05.06.2015 / 20:40
1
answer

Unexpected Behavior, XOR Logical Operator - PHP

Why can you see this behavior of the logical operator xor ? $bool = false xor true; var_dump($bool); // bool(false) $bool = true xor false; var_dump($bool); // bool(true) So I read, xor should return true only if one or the o...
asked by 08.09.2015 / 18:20