Posts by Mateus • 406 points
13 posts
-
0
votes2
answers363
viewsA: Select a select by the input value
Welcome ! we can do using js observe: $('#input').keyup(function(){ var input = document.getElementById("input").value; //pega o valor digitado. if (input == '000' || input == '111' || input ==…
-
2
votes4
answers460
viewsA: How do you separate word into letters in php?
Hello. you can use a function php. str_split Converts a string into an array. https://www.php.net/manual/en/function.str-split.php Ex: $s = "123"; $valor = str_split($s); print_r($valor);…
-
1
votes1
answer56
viewsA: Loss of information when ordering a datatable inside a Modal with AJAX
It’s the way you’re cleared the table with the $('#lista_candidatos').empty(); puts it after the ajax Success
-
1
votes1
answer48
viewsA: Github - Clone directory
Hello, you have to make the initial settings: $ git config --global user.name "user142009" $ git config --global user.email [email protected]…
-
4
votes3
answers170
viewsA: Generate random value with formatting
hello, you can use a function like this: function gerarCombinacao() { $combinacao = chr(rand(97,122)); $combinacao .= chr(rand(97,122)); $combinacao .= chr(rand(97,122)); $combinacao .= "-";…
-
1
votes1
answer147
viewsA: How to properly configure JSON return with content coming from Mysql with accent
Try a return similar to that : json_encode($response, JSON_UNESCAPED_UNICODE);
-
1
votes2
answers59
viewsA: PHP Personal how to list array that are with the limit less than 30 min
Hello, you can try like this: change $resultado = $ARRAY[$i]; for: if ($ARRAY[$i]['limit-uptime'] < 30) { $resultado = $ARRAY[$i]; } when you put the variable $resultado within the if it will…
-
1
votes1
answer50
viewsA: Make modal box without HTML
Hello the insertion sequence of your script this incorrect. jQuery(function() { var modalHtml = '<div id="open-modal" class="modal-window">' + ' <div>' + ' <a href="#" title="Close"…
-
1
votes1
answer36
viewsA: Help with input with , and . php with myslq
To save values with dot in DB the column has to be like FLOAT and it only understands point. Comma no. It is possible that your current column is of the type INT. if you are changing to FLOAT.…
-
2
votes2
answers166
viewsA: Function does not change the variable
You have to pass as parameter the new values you want. Because the way you are doing the values are already defined in the function. example: $sword = 5; $damage = 33; $weapon = "Tword"; $dados =…
-
0
votes1
answer193
viewsA: Datepicker does not open when loading Ajax into a Bootstrap 4 modal
Hello, add this code instead of the $( "#data1_inicio" ).datepicker();. $(function () { window.prettyPrint && prettyPrint(); $('#data1_inicio').datepicker({ format: 'dd-mm-yyyy', language:…
-
2
votes2
answers120
viewsA: Session Codeigniter PHP
Just change the $config['sess_cookie_name'] = "ci_session"; it comes as default. then switch to one of your preference that is not equal to the other system. OBS: The browser saves the session as…
-
1
votes2
answers120
viewsQ: Session Codeigniter PHP
I have two different systems. Both created with codeigniter. The problem is this: Do logon in the 1 system and I use normally, then I open the 2 system, and then it occurs that the Session of that…