Posts by Vinicios Yals • 327 points
20 posts
-
0
votes4
answers192
viewsA: Summing up 3 inputs
You are indexing the elements the respective variables "values", the correct form would be: function calculaSoma(){ var valor1 = $('input[name=data\\[valorc1\\]]').val(); var valor2 =…
-
0
votes0
answers32
viewsQ: TIME field formatting
I have the following given in the bank 55:42:55 and I need to make it more readable this way 2d7h42m how could I do this formatting?
-
2
votes2
answers581
viewsQ: Difference and sum of DATETIME column
I have a table called chamado_processos with the following structure and data As you can see one of the columns of this table called dt_processo is a field DATETIME and the column tp_processo…
-
0
votes2
answers241
viewsA: PHP - SQL: show the user’s email from the database
I recommend using PDO, Mysql native functions for PHP are decrypted for years. But answering your question, you do not need the second parameter. Considering that a connection to the database is…
-
1
votes2
answers114
viewsA: Sending email to multiple recipients
Using the mail function() from PHP you can send to multiple recipients using the first parameter in this way: mail('[email protected], [email protected], ...', ...); Just split the emails inside…
-
0
votes1
answer232
viewsQ: Filling in masked input with zeros
I’m using the plugin https://igorescobar.github.io/jQuery-Mask-Plugin/ to create mask in an input field, the mask I am using is as follows:. $('.campo').mask('0.0.00.000'); I need that when typing…
-
1
votes1
answer94
viewsA: Run Query according to selected Radiobutton
Adapt this code after your $_POST if ($v_desc == 1) { // executar Query_01 } else if ($v_desc == 2) { // executar Query_02 } else if ($v_desc == 3) { // executar Query_03 }…
-
0
votes2
answers463
viewsA: How do I make the href that is inside my div work with Focus?
Would that be something like this? Using the jQuery library. $('#div-clicavel').on('click', function() { window.location.href = "https://www.google.com/"; }); <div id="div-clicavel">Clique…
-
2
votes1
answer208
viewsA: Codeigniter - cannot print select values in view
Your data needs to be passed through the controller first and then passed to the view. Model function getAllDisplayable3() { $username = $this->session->userdata('username');…
-
3
votes2
answers19178
viewsA: How to use available fonts from Google Fonts in HTML?
Folder you choose your font and click Quick use After that you can import the source to your code using 3 possible ways HTML <link href='https://fonts.googleapis.com/css?family=Open+Sans'…
css3answered Vinicios Yals 327 -
0
votes2
answers73
viewsA: How do I make my Modal only appear on the customer’s first visit ?
You can use Jscookies if (Cookies.get('visita') != true) { Cookies.set('visita', true); $(".janelaModal, .fundoModal").fadeIn(); $(".botao").click(function(){ $(".janelaModal,…
-
1
votes1
answer30
viewsA: External variable gets value from an Success
EDIT function countChecks(evento, data) { var relation = evento.relation("eve_users"); var query = relation.query(); function data(response) { query.count({ success: function (res) { data(res); }…
-
1
votes1
answer624
viewsA: Include a file external to Codeigniter
You need to insert Moodle in the "application/third_party" folder, after that in the "Libraries" insert a file "Moddle.php" <?php defined('BASEPATH') OR exit('No direct script access allowed');…
-
2
votes4
answers296
viewsA: Correct way to use php’s abs function
Use what is described in Manual for PHP so it will be guaranteed that regardless of the machine settings all your code will work correctly. Usually the " " is used when you are making use of a…
phpanswered Vinicios Yals 327 -
0
votes1
answer123
viewsA: How to get multiple keys in JSON with PHP?
You can use PHP’s native "json_decode" function $json = json_decode('{"12":{"0":{"9678":{"920":{"224":{"657":"José da Silva"}}}},"1":{"0512":{"987/21":{"233":{"652":"Maria Silva"}}}}}}', true);…
-
0
votes1
answer35
viewsQ: Bringing together records from another table in a new query
I have a table "tbA" where the primary column "a1" needs to be referenced by the table "tbB" by the column "fk_a1" tbA id | nome | ---+------+-- 1, 'aaaa' 2, 'bbbbb' 3, 'cccc' 4, 'ddddd' tbB id |…
mysqlasked Vinicios Yals 327 -
1
votes1
answer130
viewsA: Native app performance is still far superior to html based app?
Performance I recommend using the own IDE of Google for development of Apps for android, the performance of a native APP will always be superior. Such an IDE usually works with compilation and the…
-
1
votes2
answers226
viewsA: Angular Datepicker - Prev and Next
You can via jQuery force a click on the next and Prev buttons that are inside the controller. $('#mydt-uib-left').click(function() { $('div[ng-controller="DatepickerCtrl"] .uib-left').click(); });…
-
1
votes1
answer220
viewsA: How to pick up an item from the return of a json
I’m not sure I understand exactly what you want to do but maybe you can use a foreach to go through the "list" array and retrieve item by item. for (String item : lista) { // faça algo }…
-
0
votes2
answers783
viewsA: How to execute method by clicking a button type
Using the framework jQuery you can use the property $.ajax in this way. $('.botao').on('click', function() { var campo = $('.campo'); $.ajax({ url: 'url_do_seu_metodo_php', method: 'post', data:…