Posts by Wagner Soares • 541 points
29 posts
-
0
votes1
answer96
viewsA: Hide row from a table by Javascript
I usually do like this: $("#tabela").on("click",".deletaLinha", function() { var tr = $(this).closest('tr'); tr.css("background-color","yellow"); tr.fadeOut(600, function(){ tr.remove(); }); return…
-
0
votes2
answers23
viewsA: Enable buttons for windows, and Windows 32 and 64 Bit
Missing a couple of parentheses on your if I am Thus remaining: else if((window.navigator.userAgent.indexOf("Windows NT 10.0")!= -1) && (navigator.userAgent.indexOf('64')!= -1)){ However…
-
0
votes3
answers925
viewsA: Search name by first and last name
Try it this way: SELECT * FROM pessoas WHERE nome LIKE %$nome%$sobrenome% Assuming you have separate fields for the name and surname
-
0
votes1
answer25
viewsA: php read get cardinal
Replace # with code %23. Cannot send this character via get
phpanswered Wagner Soares 541 -
3
votes2
answers13835
viewsA: Algorithm to calculate the sum of the numbers typed in portugol
the part soma = soma+numero Must be inside the loop while{} Thus remaining: programa { inteiro cont=0, numero, soma=0 funcao inicio() { enquanto (cont<3) { cont++ escreva ("Digite um número…
-
0
votes1
answer561
viewsA: Making "how to arrive" with predefined destination
Here’s an example from the google maps api page: <!DOCTYPE html> <html> <head> <!-- This stylesheet contains specific styles for displaying the map on this page. Replace it with…
google-mapsanswered Wagner Soares 541 -
0
votes2
answers960
viewsA: Search inside the input and open another page
Place your search field and button inside the tags <form action="paginaParaAbrir.php" target="_blank" method="post"> //Aqui seu botao e campo de pesquisa </form> There is only assemble…
-
2
votes1
answer938
viewsQ: Wordpress redirecting home to localhost
I installed wordpress on my localhost for testing, then I tried to migrate to a domain, made the changes in siteurl and home and also updated the links of the posts I had, everything is working…
wordpressasked Wagner Soares 541 -
4
votes3
answers1079
viewsA: Problem checking all checkboxes
Do so: $scope.ckeckMarcarDesmarcarTodos = function () { if( $('#ckeckAll').is(':checked') ) { $('#ckeckAll').prop( "checked", false ); } else { $('#ckeckAll').prop( "checked", true); } }; Only one…
-
0
votes1
answer316
viewsA: How to import a csv file to a Jtable?
Alter your while so, supposing that your .csv either with 3 columns and separated by a point and comma (data 1;data 2;data 3) while ((line = br.readLine()) != null) { //estou dividindo em um array…
-
2
votes1
answer428
viewsA: Php Mysql PDO connection on localhost by ip
I managed to solve my problem. In Mysql settings I added: skip-name-resolve Stay right where you need to be
-
1
votes1
answer336
viewsA: Time in Mysql and PHP
Try it this way: setlocale(LC_TIME, 'portuguese'); date_default_timezone_set('America/Sao_Paulo'); $date = $row->data; echo strftime("%A, %d de %B de %Y", strtotime($date));…
phpanswered Wagner Soares 541 -
2
votes2
answers1911
viewsA: Mysql - Search number in a string
Try it this way: CREATE FUNCTION IsNumeric (val varchar(255)) RETURNS tinyint RETURN val REGEXP '^(-|\\+){0,1}([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+|[0-9]+)$'; CREATE FUNCTION NumericOnly (val…
-
0
votes1
answer50
viewsA: Search XML tags
Tries to convert your string into an xml. $dom = new DOMDocument('1.0', 'utf-8'); $dom->preserveWhiteSpace = false; //elimina espaços em branco $dom->formatOutput = false; // carrega o xml…
phpanswered Wagner Soares 541 -
0
votes2
answers854
viewsA: Put default value in column
Try it this way: @Column(name="suacoluna", columnDefinition="float default 0")
-
1
votes2
answers186
viewsA: Make your website open only on mobile
I use a php class to detect if it’s mobile or not: <?php function…
-
1
votes1
answer2115
viewsA: List duplicate names in Mysql for change
Try doing with a subquery like this: SELECT nome, foto, ativo FROM comColaborador WHERE id in( SELECT id FROM comColaborador GROUP BY nome HAVING count( nome ) > 1 ) I didn’t have time to test it…
mysqlanswered Wagner Soares 541 -
0
votes1
answer90
viewsA: org.apache.Commons.net.ftp UPLOAD
I managed to solve my problem. For the record I found the solution in this post https://stackoverflow.com/questions/10530240/commons-ftpclient-hangs-after-uploading-large-a-file…
-
2
votes2
answers586
viewsA: Hide or delete row from table when delete record
I use it like this: $("#tabela").on("click",".deletaBtn", function() { var tr = $(this).closest('tr'); tr.css("background-color","yellow"); tr.fadeOut(600, function(){ tr.remove(); }); return false;…
-
2
votes2
answers309
viewsA: put checkbox value in the email?
The way you’re doing I’d do it like this: Add id to checkbox field <input type="checkbox" name="two" id="two" value="desejo receber informações" /> In the script would add var two = "N";…
-
0
votes1
answer191
viewsA: How do I add values to an array?
You can put it like this: jButton7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Aluno aluno = new Aluno();//cria uma…
-
0
votes1
answer64
viewsA: What steps should I follow to put my website online
At first you won’t have to change anything in your code. If you’re going to use a free stay you won’t need anything else. Put her up at the lodge and see how she looks. Remembering that with a free…
-
3
votes1
answer51
viewsA: How to update a field using it at the same time?
I think that’s what you need: update tabela set total = total+5
-
0
votes2
answers51
viewsA: PHP-get the last 4 id’s inserted in the database
Normally use: order by tabela.id_da_tabela desc limit 4
-
-3
votes1
answer90
viewsQ: org.apache.Commons.net.ftp UPLOAD
I am uploading a file to the server but if the file is a bit large (200mb+) the upload is finished but the program crashes and does not give me a return if it completed the upload. If the file is…
-
2
votes1
answer212
viewsA: Fill in textview android studio/sql server
After Resultset rs= ps.executeQuery(); while(rs.next()){ text.setText(rs.getString("text")); } Try it on and tell me if it worked
-
1
votes1
answer428
viewsQ: Php Mysql PDO connection on localhost by ip
I have a PHP/Mysql system in which I connect via PDO on the "localhost" host, but I will need to put the IP of the server "xxx.xxx.xxx.xxx" instead of "localhost", the system works but very slow. I…
-
0
votes0
answers75
viewsQ: Chrome update changed input type text size
After the last update of Google Chrome input text which are shown within jquery dialogs increased in size in the view. I did some research and tried to fix using the code below: input {…
-
4
votes1
answer333
viewsQ: Performance in Mysql Database Queries
What is the best option in terms of performance? I do select * from agenda, paciente where agenda.id_paciente = paciente.id_paciente and take the data together from the agenda and patient or do…