Questions tagged as 'php'

1
answer

way to give echo type laravel

Recently I started using Laravel and found the {{}} function to be very useful since even though it is a JavaScript , it does not activate, other than echo in PHP . I would like to know if you can do the same thing in PHP...
asked by 06.07.2018 / 02:33
2
answers

Recovering bank data and calculating inputs

Good night, I'm having a hard time recovering a data in the I recovery but I wanted the recovery to be simultaneous. I'll explain it better and as soon as I see the code, I'll understand. include("banco/banco.php"); $prod = $conexao_pdo->p...
asked by 01.01.2018 / 22:47
1
answer

ORDERBY, ignore accents

I have a name column that belongs to the Producer_BVU model, whose names are: 2M1J A. Coelho ÓRBITA Bruno When I order: \App\Producer_BVU::orderBy('name', 'ASC')->get(); The output is: ÓRBITA 2M1J A. Coelho Bruno...
asked by 04.01.2018 / 10:50
1
answer

Keys in PHP Array

I have a good question, I was able to identify the problem, but I could not solve it .. hahahaha It is the following ... I have the following array: array:7 [▼ 1 => array:5 [▶] 2 => array:5 [▶] 4 => array:5 [▶] 10 => arr...
asked by 03.01.2018 / 13:56
2
answers

Set loading time for loading

I have the following code that I use to send form data to the PHP file. function loginRequest() { // Declaração de Variáveis var usuario = document.getElementById("txtusuario").value; var senha = document.getElementById("txtsenha").val...
asked by 30.12.2017 / 00:55
1
answer

return from array_search () considered false condition

In my code, on the login screen, I search the BD for the number of blogs belonging to the same user, and put the ID of those blogs in an array, then assign it to a session variable (I want my code to allow the user later of logged in to access t...
asked by 06.04.2018 / 05:48
1
answer

PHP or JS - Hide Name with more than X careteres

Using the phrase "OLA SOU FIXE LALALA" How can I just show half, for example "OLA SOU F..."     
asked by 31.03.2018 / 17:58
1
answer

Create Infinite PHP Menu

I am trying to create an infinite menu, I already mounted the object the way I need, but I can not print. It should look something like this: User User > User1 User > User2 User > User2 > User3 User > User2 > User4 User >...
asked by 05.04.2018 / 21:07
2
answers

Undefined variable in PHP

I'm trying to run this PHP code using object orientation and I'm having difficulty. <?php class Circulo { // declaração de propriedades public $raio = 0; public $area = 0; // declaração de método public function mo...
asked by 14.12.2017 / 19:36
1
answer

Problems with PHP date

I'm using the following function to return the date correctly from MySQL to the Brazilian format: function FormatBR($data){ $date = date_create($data); $date = date_format($date, 'd/m/Y'); return $date; } But the return is like...
asked by 14.12.2017 / 01:25