Posts by caiovisk • 252 points
13 posts
-
-1
votes1
answer44
viewsA: Scroll does not work in modal!
In which part do you want the scroll? If it is only in the modal, set the overflow Voce achieves the desired... .modal { overflow: auto; max-height: 90vh; box-sizing: border-box; } function teste()…
-
-2
votes2
answers64
viewsA: php login giving user nonexistent
You can check whether the user exists directly in the database using WHERE: "SELECT login, senha FROM users WHERE login = '{$login2}' AND senha = '{$senha2}' LIMIT 1" This way Cvoce can select your…
-
1
votes3
answers57
viewsA: Convert stopwatch to hh mm ss format
Another way to follow your line of code would be to organize your team in time, minute and second, and then format... function iniciarTimer() { let hora = 0 let minuto = 0 let seg = 0 const timer =…
-
0
votes1
answer30
viewsA: How to get the values of an object from an array returned from Laravel?
You have to run each array of the returned json. You can use the function $.each jQuery to interact with your array/object: success: function(data) { $.each(data[0], function(i, produto){…
-
1
votes1
answer23
viewsA: Comparison of categories in ACF AJAX repeater fields
You will have to organize your winners by categories first... and then you should organize your html according to the structure you want... //Organiza os vencedores em categorias foreach ($vencedor…
-
-2
votes2
answers52
viewsA: How to take data from within a foreach array in php
You can transform the objects within the array into an array and then run the foreach //Transforma os Object dentro do Array em Array $tudoArray = json_decode(json_encode($data->dates), true);…
-
-2
votes1
answer14
viewsA: My File Session publicacoes.php reaches null until follow.php
The PHP error is explicitly saying what is wrong: Cannot Modify header information - headers already sent by( output Started at ... Come on... What does that mean? Function header() according to PHP…
-
-1
votes1
answer17
viewsA: verification and addition in CSV and PHP
Use the fgetcsv of PHP: see https://www.php.net/manual/en/function.fgetcsv.php Similar to the function fgets(), except that fgetcsv() interprets the line in CSV format and returns an array…
-
0
votes2
answers39
viewsA: Match the Arrays
You can use the array_map and the array_walk method: $cor = "Preto Branco Azul Amarelo"; $cor = explode(" ",$cor); $output = array_map(function($key, $value, $cor){ global $cor; $new_cor = $cor;…
-
2
votes1
answer59
viewsA: Scroll a div automatically using CSS overflow
You must use the property element.scrollTop and every time a character is inserted div and arrow the scrollTop from her to her size. Docs:…
-
1
votes1
answer83
viewsA: Align my buttons inside Javascript?
When you put some form to reproduce the error, it is easier for us to help you... It is a simple "fix" in your CSS... Your div .btn-toolbar is applying flex-wrap: wrap; which means that the…
-
4
votes2
answers59
viewsA: How to maintain a responsive daughter DIV without overriding parent DIV and without using overflow:Hidden
What’s causing the problem is height: 100% in his tab-container div. It turns out that the height of tab-container was set at 100% and your div tab-header was set to a minimum height of 48px, so…
-
0
votes1
answer17
viewsA: Validate input with ajax populated values
A simple solution would be to put a hidden input that will be populated with what the user selects. <div class="col-md-5 text-center"> <input class="form-control form-control-lg text-muted…