Posts by Leonardo da Silva • 67 points
9 posts
-
1
votes2
answers594
viewsA: Comparison of datetime using Laravel eloquent
Thanks and credit to Virgilio Novic I worried so much about ensuring that the string was seen as DATETIME that I did not consider that the default Mysql formatting is interpreted by itself as a…
-
1
votes2
answers594
viewsQ: Comparison of datetime using Laravel eloquent
Hello, I’m having problems using Laravel’s eloquent to create an SQL that meets the following demand: "return a query if there is a reservation made in a certain period of time"; Following the code…
-
1
votes1
answer628
viewsQ: React Axios PUT/PATCH method Unauthorized, Laravel 5.7
The PUT/PATCH methods available in the API via the function Route::apiResource('user','UserController'); are those: GET and POST requests work normally, but in the PUT/PATCH route implementation I…
-
0
votes0
answers318
viewsQ: Changing Width of the Component Drawer material-ui React
I am learning both Re-act and using the material-ui in conjunction with React, my problem is that I would like to use a "custom width" for the component Drawer, in my initial attempt I did the…
reactasked Leonardo da Silva 67 -
1
votes1
answer76
viewsQ: Javascript converts string to int when passed as function parameter
I have the following excerpt: "onclick=relatorio("+dados[i].cnpj+")" data[i]. cnpj is a String type variable, or at least need it to be so, but Javascript converts the function parameter into a type…
-
-1
votes3
answers593
viewsA: How to get all $_POST information
Use foreach: # v2 foreach ($_POST as $key => $value) { echo $value; } it will iterate upon ALL the key to $_POST Edit: you’re right, the above code didn’t work…
-
0
votes1
answer635
viewsQ: Javascript: Add object within an object array
I have: var options = { title: 'Titulo', width: largura, height: altura, vAxis: { title:"Porcentagem % em vendas", format: 'decimal' }, hAxis: { title: "Seleção de clientes - Comutativa", } }…
-
1
votes1
answer688
viewsA: Use DISTINCT SQL Server clause
select distinct in temporal table sql server It’s basically the same problem I had: the author of that code is @joséDiz, I’ll modify it to meet your demand: WITH Sinc_2 AS (SELECT*, seq =…
-
1
votes1
answer225
viewsQ: select distinct in temporal table sql server
I have the following code: (is from a table that the representatives have the same code, which generates duplicated values, I solve this by taking the most current representative, in short the last…