Posts by Diego Lela • 538 points
45 posts
-
-1
votes1
answer32
viewsQ: Error When Returning Data in View - Laravel 5.5, PHP and adldap2
I created a list of Extensions through PHP and Laravel 5.5 and I’m having difficulty displaying the query data $users in the view why I can’t properly traverse the fields with Foreach What’s wrong…
-
0
votes0
answers337
viewsQ: Calling Function in View - Laravel 5.5
Guys, it’s been a while since I programmed PHP and I have the following question: I am calling a function in my View as follows: {{ $result_resumo =…
-
1
votes1
answer259
viewsQ: Xamarin - Hamburger Some Menu by clicking Back WP button
I am using the code below to create a Master Detail menu in Xamarin. The code works perfectly on Android but on Windows Phone it has a bug that I am unable to solve. Mainpage.Cs using…
-
2
votes1
answer794
viewsA: Laravel 5.5 - Sending Email / Env File
I solved my problem this way: Lavavel has a form of access in which we can set the properties at runtime directly using config. As I wanted to fill the email settings, I needed to access the…
laravel-5answered Diego Lela 538 -
1
votes1
answer794
viewsQ: Laravel 5.5 - Sending Email / Env File
I am migrating a site I have to Laravel 5 and I came across a problem. To email in Laravel I need to manually fill in the user and host port data in the file . env As in my site I have an interface…
laravel-5asked Diego Lela 538 -
0
votes1
answer213
viewsQ: Laravel 5.5 link with Ancora
I have the route below that redirects to the main page of my site.. Route::group(['prefix' =>'site', 'namespace' => 'site'], function(){ Route::get('/',…
-
1
votes1
answer472
viewsQ: HTML Css and Php Dynamic content in DIV
I am developing a site and in it I created a service area where through CSS, HTML, PHP and Laravel I display the content dynamically, I do a foreach... As I do not limit how many records the user…
-
1
votes1
answer506
viewsQ: Xamarin: Pass data from selected item in a Listview to another Screen
How do I pass selected data from one screen to another in Xamarin? I have a Listview that receives the information from an Api and I want the user to click on the item, view this information on…
-
0
votes1
answer332
viewsA: Xamarin: Android app does not load Https images
I solved my problem this way: I noticed that when displaying an image, the hosting server creates a redirect before. Ai to get around the problem, I downloaded my api and changed the return adding…
-
0
votes1
answer332
viewsQ: Xamarin: Android app does not load Https images
Guys I’m developing a Cross-platform App in Xamarin and I’m not able to upload https images from an api. If I perform a compilation on Windows Phone the images are normally loaded already on android…
-
1
votes1
answer684
viewsQ: Delphi Seattle 10 popular a listview with image coming from url - Mobile
I am developing a mobile system (Android and IOS) with Delphi Seattle 10 and came across the following problem: I need to popular a listview and for that, I receive the data via Json through a Rest…
-
1
votes1
answer1630
viewsQ: Xamarin How to change the Menu and Selected Item color?
How to change the Blue colors of the "selected item" and menu in Xamarin? See images: Menu Selection in the Menu I tried to Change directly in the Home view (The page that appears as the main one),…
-
1
votes0
answers89
viewsQ: Laravel 5.5 Array Diff with bug?
I am developing in Laravel 5.5 and Php 7.1.9 and came across the following problem: I have the following Checkboxes screen and when marking any of the fields, the arraydiff of Laravel insists on…
-
1
votes1
answer270
viewsA: Doubt in consultation Groupby and Checkbox - Laravel 5.5
I was able to solve my problem by changing the way update and the insert so that I can use a where and get the records correctly. In the previous code, I was recording only the checkboxes that were…
-
2
votes1
answer270
viewsQ: Doubt in consultation Groupby and Checkbox - Laravel 5.5
I am developing in PHP in Laravel Framework 5.5 and have the following code to create my checkboxes. {{-- percorrendo a tabela para exibir os checks--}} @foreach($permissoes as $keys =>…
-
0
votes1
answer637
viewsA: Laravel - Return checkbox clicked
For those with the same problem, I solved as follows: 1- I changed the way to execute the foreach loop. In the previous Code (Beginning of the Post) I performed 2 loops now I perform only one. 2- In…
-
0
votes1
answer637
viewsQ: Laravel - Return checkbox clicked
I need to return the checkboxes clicked on a view for editing, but I’m having problems. The values even return clicked but the foreach is duplicating the checkboxes causing an option to appear more…
-
0
votes1
answer118
viewsQ: Laravel and Ajax - Doubt about route
Using the Framework Laravel 5.5, How do I call the following route in Ajax? Route: Route::group(['prefix' =>'paineladmin', 'namespace' =>'PainelAdmin', ], function(){…
-
1
votes1
answer608
viewsQ: Laravel 5.5 - Validation Method does not exist?
I’m having problems performing a data validation in the version 5.5, can you tell me where I’m going wrong? Error: Here is the code of Controller <?php namespace App\Http\Controllers\PainelAdmin;…
-
0
votes0
answers603
viewsQ: Doubt Installation of Laravel and PHP 7.0 Wampserver
I’m having a doubt. It is the first time I install Laravel and for this, I followed the tutorial of the following forum Tableless. So far so good, the installation is ok, but when creating the first…
-
0
votes3
answers247
viewsA: Error when passing Ajax parameters to function in PHP class
Problem Solved! Thank you to everyone involved! With your help I was able to identify where my mistake was... to test I was instantiating the class in a button so that I could not receive the return…
-
0
votes3
answers247
viewsQ: Error when passing Ajax parameters to function in PHP class
It’s the first time I try to pass parameters from ajax to my function that is in a class in php, so I ask, why isn’t it working? searching the forum I saw that could put data: { var1 = 'var1', var2…
-
2
votes3
answers154
viewsA: Javascript remove() does not work
Thanks for the help @haykou and @Davidsamm The problem was in the following excerpt <div class="col-md-4" id="col-'+key+'">'; was missing a double quotes at the end of the "col-md-4"why the…
-
0
votes3
answers154
viewsQ: Javascript remove() does not work
See the script below. Why remove() doesn’t work? I recently posted on this link: post something similar, but in the other case, the problem was why the button was inside a form, but this time there…
-
1
votes1
answer262
viewsA: PHP - Scandir does not work
I found the problem. I’m using the plugin responsivefilemanager to select the files and this plugin has an option to create images in preset size folders etc, these settings can be set in…
phpanswered Diego Lela 538 -
2
votes1
answer262
viewsQ: PHP - Scandir does not work
I’m in trouble with scandir I can’t locate the directory at all, every time I get the following Warning System cannot find specified path. Check my code. I use Wamp X64, Windows 10 and PHP 5.6:…
phpasked Diego Lela 538 -
1
votes1
answer208
viewsQ: Take only a portion of the input content without submitting
I am creating an image gallery using the responsivefilemanager plugin and a problem has arisen that I am unable to solve. Look at this picture: Clicking the blue button (With the symbol of the…
-
1
votes1
answer210
viewsQ: Doubt - Clear img function with javascript does not work
I need to clear a field img and for this I am using the code below, but by clicking on button javascript does not work because the page receives a refresh. I have scanned the browser console and no…
-
3
votes1
answer111
viewsQ: PHP Doubts how to optimize Session
Today I use the following code to start a PHP Session //verificação se o id de sessão ja existe, se não existir, cria if (!session_id()){ // iniciando a sessão session_start(); // buffer para evitar…
-
0
votes3
answers4990
viewsA: Validate size, size and file type in Upload
For those who need it, below the code I used to validate the image // obtendo o tamanho da imagem extensão do arquivo e size var _URL = window.URL || window.webkitURL; $("#imagem").change(function…
-
0
votes3
answers4990
viewsQ: Validate size, size and file type in Upload
How do I validate the file size, the image dimensions (Size) and the file type that will be used in Upload, before Submit ? To upload I use the function below in PHP, but the validation happens only…
-
0
votes1
answer43
viewsA: Slide Problem - Firefox Browser
For those with the same problem, just do not use the plugin add-on data-cycle-auto-height=container This add-on apparently has a bug only in firefox browsers. I stopped using it and called the div…
-
2
votes3
answers228
viewsQ: Doubt Warning in Javascript
I was looking for a function to display an alert message to the user when he leaves the page and I located this one on the forum: <script> // Script de Alerta ao fechar a pagina...…
-
0
votes1
answer210
viewsA: Avoid duplicity in INSERT with PHP
I do not know if it is the optimized way, but you could also do a foreach before performing the inclusion, when the user click the add button, see this example // Verificando e Já existe algum…
phpanswered Diego Lela 538 -
1
votes2
answers60
viewsA: Save to the bank who edited profile
I think the ideal would be to create a new table and in it every time someone requests this page, you record the user id and the data you need, to easily locate, type, you could create a management…
-
6
votes4
answers9952
viewsA: How to make Mysql return utf-8?
I don’t know if it’s ideal, but you can make an appointment that way too $sql = "SELECT * FROM tbl_produto WHERE nome_produto = :nome_produto collate utf8_unicode_ci ";…
mysqlanswered Diego Lela 538 -
0
votes1
answer43
viewsQ: Slide Problem - Firefox Browser
I have a CSS development problem of a Slide, only in the Firefox browser. For the site I am using a slide plugin Jquery Malsup Slide works perfectly on other browsers, less in Firefox Desktop mode..…
-
1
votes1
answer34
viewsQ: Doubt Css - Unify Divs
Hello everybody Good afternoon! Look at the image below, is there any css property where I can remove the dividing line of the 2 Divs so the content stays the same? or the best option would be to…
-
1
votes0
answers987
viewsQ: Css How to Leave the Right Side of the Slanted Div?
I have a demand in which I need to leave only one right side of an inclined div, that is, diagonally. How do I achieve this effect? While researching, I saw that I could use the code below to tilt…
-
2
votes1
answer133
viewsA: Problem using Friendly Url
The server apache had the Multiviews option disabled. It was only by forcing the option through . htaccess that the problem was solved. I added the following line in the file Options +MultiViews…
-
1
votes1
answer133
viewsQ: Problem using Friendly Url
Where I’m going wrong on this . htaccess ? RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] the site I developed works normally on…
-
2
votes2
answers484
viewsA: Javascript and Php, Delete Message
Problem Solved! Felipe Duarte and Leo Caracciolo helped me!!! below I am posting the code with the changes .... for those who need! hugs, Diego Button <!-- repassando o id codificado através do…
-
0
votes2
answers484
viewsQ: Javascript and Php, Delete Message
Good afternoon! Can you please tell me where I am going wrong with this code? the deletion procedure does not work when I pass the parameter on onclick Thank you! Button <!-- repassando o id…
-
0
votes0
answers478
viewsQ: Doubt: Connection and query with PHP, PDO and MYSQL
Good afternoon! I have a mistake I can’t identify at all. I need to perform more than one query in different classes on a screen. My problem is happening when the second query is run Php is…
-
0
votes1
answer304
viewsQ: PDO inserting null
I’m trying to create a simple screen of user registration, but I’m having problems performing the insert. The method is executed but the MySQL inserts null instead of form fields I get through a…