Posts by Michel Simões • 1,236 points
82 posts
-
0
votes2
answers64
viewsA: How to create some kind of "dynamic index" in the database
Hello, Lucas, hello, Lucas! I tried to reproduce the problem and it really is more complex than it actually looks. An alternative to your problem would be to simplify SQL... This way, Voce does what…
-
2
votes1
answer364
viewsA: Add value to a variable in the mysql table
quite simple until... update Table set field = field+100 Where id = xxx; if the field value is 120, it will be 220.
-
1
votes2
answers276
viewsA: Using a select with UNION or other mysql parameter
In this case you need to do an Inner Join, recover the values of the history table relative to the debit. SELECT A.valor as debito, B.valor as recebido FROM tb_compras A INNER JOIN…
-
1
votes1
answer15
viewsA: Treatment when converting given
Replace takes the first item and replaces it with the second in the applied variable. string = string.replace(",", ".");
androidanswered Michel Simões 1,236 -
0
votes3
answers92
viewsA: Insert summary when there is a change in a PHP Array
I believe it works. foreach($grupo_arr $k => $v){ $c1 += $producao_array[$k]; $c2 += $segunda_array[$k]; $c3 += $terceira_array[$k]; $c4 += $producao_r_array[$k]; $c5 += $eficiencia_array[$k];…
-
2
votes1
answer946
viewsA: Recaptcha v2 on local server!
According to the recaptcha any key is valid by pointing to localhost or 127.0.0.1 within your application. If Voce uses another way to test your environment you can create a new application and…
-
1
votes2
answers66
viewsA: What’s wrong with this query?
A select query will not return a true one, as in this comparison you are trying to do. You can even check if it will not return errors, but this comparison that is doing it will never enter the if.…
-
0
votes1
answer312
viewsA: Select without repeating data
To avoid repeating the data in the Inner Join Voce only need to put at the end of the syntax "group by album_id"
-
0
votes1
answer460
viewsA: Nav-tabs nested
From what I understood what you need would be this as below: PS1: Do not use "." for ID selector, it can be broken in css and js. PS2: Better organize code, comments and identations to separate site…
-
-1
votes2
answers1214
viewsA: Use of A1 digital certificate installed on the server
yes, it is possible to store the permissible certificates in your permissions list (Keystore) that will be read by your apache. You configure it in the same xml that configures apache SSL or HTTPS…
-
0
votes3
answers1052
viewsA: Image with scroll vertically and height 100%
First css for your image: #bg-mobile{ position: relative; width: 100%; margin:0; padding:0; } Now the div: #bg{ position: relative; } With this css your div will be in bg…
-
1
votes1
answer345
viewsA: Authentication error in WSDL
When the content is in a Ws endpoint, via php the most coherent is to do via CURL... <?php $runfile = 'http://ws.portaledu.com.br:8051/wsConsultaSQL/MEX?wsdl'; $ch = curl_init(); curl_setopt($ch,…
-
2
votes2
answers1312
viewsA: How to select one element within another with CSS?
Voce treats Childs with elements concatenated in msm line: .icon-box11 h4{ } and .icon-box11 p{ } This way the rule will apply only to H4 and p daughters of its icon-box11 class…
cssanswered Michel Simões 1,236 -
1
votes1
answer86
viewsA: Javascript sub-functions
What you are referring to are not actually functions, are classes, where classes have methods within them, see below: class Ponto { constructor(x, y) { this.x = x; this.y = y; } static distancia(a,…
-
1
votes2
answers477
viewsA: Condition in Trigger
You can use a conditional to ensure the integrity of the code, in this case it will not perform the update but will try, which will generate a process... IF @ID != '' THEN UPDATE dbo.TB_DOCUMENTOS…
-
-1
votes2
answers39
viewsA: Date help in order printing
You explode the hour before, through space... $data = explode(" ", $detalhe['dtConcat2']); echo implode('/',array_reverse(explode('-',$data[0])))." ".$data[1];
-
0
votes1
answer245
viewsA: Send variable via Jquery function
There are some patterns together there.... the first you will use when you want the function to be called in the page load, no action from anyone, then Voce does so: $(function(){ alert('carregou');…
-
2
votes2
answers450
viewsA: Need to check if a line is duplicated in my TXT how do I do?
Function in_array(variable, array) aims to check whether the object is contained in the array, as the name says it checks whether the value is in the array. Will return true or false, see the…
phpanswered Michel Simões 1,236 -
0
votes2
answers64
viewsA: I need to get the ID of one of the elements inside a combobox
In the example below Voce handles the ID attribute of the selected option. $('#exemplo').change(function() { var valor = this.value; var id= $(this).find(':selected').attr('id'); console.log(valor,…
-
0
votes1
answer172
viewsA: Help on the z-index
If ta fixed it cannot be proportional or automatic the value of width or height, because it will not be based on anything to be auto or with percentage. Change the value to px, example: #slideit {…
cssanswered Michel Simões 1,236 -
1
votes2
answers128
viewsA: I can’t get the value of a child element
Do it like Hamps and say if it worked... PS: If you insert another line after the full screen load, you need to redeclare this condition again, right after inserting a line, if not only the old ones…
-
0
votes1
answer42
viewsA: I need help how to limit or balance the colors of an image with php
In this example, you load an image, jpg or png, also loads a gif(16colors), the image you want to manipulate copies the color properties of the gif, saves a new one and erases everyone who will not…
-
1
votes2
answers928
viewsA: Maximum limit of POST
It is not a good practice to leave unlimited, especially if it is open, maaaaas... Try this: post_max_size = 2M para post_max_size 100M upload_max_filesize = 8M para upload_max_filesize = 100M…
-
1
votes2
answers979
viewsA: Picking text from an input text
<form action="" method="post"> Escolha um botão <button name="Comentar" type="submit" value="escolha1">HTML</button> <button name="Comentar" type="submit"…
-
1
votes3
answers1626
viewsA: Check Availability of CEP
I won’t go into explaining, but basically, there’s an array with the fruits, "Banana", "Orange", "Apple", "Mango" if you type one of them in the field it gives you the answer that there is, if not,…
-
-2
votes1
answer74
viewsA: Develop loading in steps with JS/PHP
A practice for displaying the status of the code being processed in slower or more processed reloads, such as batch processing, file loading, bulk mailing, etc.If you want to use php’s flush…
-
-2
votes1
answer53
viewsA: PHP break list items "<li>" into variables to add in MYSQL table
You could do the listing by separating only with commas, it is much easier when filling the user’s textarea and easier for you to make an explosion with Trim. You can also ask the user for only one…
-
0
votes2
answers7149
viewsA: Simulate Click in Javascript
put it like this: <a href="#" id="meuElemento" onclick="funcao('minha string')">clique aqui.</a> <script> function funcao(string) { alert(string) }…
javascriptanswered Michel Simões 1,236 -
-4
votes2
answers963
viewsA: Could someone explain to me why this error is returning to me? (Uncaught Referenceerror: Response is not defined)
try this and see if it has the 2 variables... function recupera_funcao_ministerial(valor, url) { response = null; if(url !="" && valor !=""){ $.post(url, {Id: valor}, function (response) {…
-
-2
votes2
answers795
viewsA: Listing in PHP by clicking button and showing more results that don’t keep CSS?
my suggestion is to put classes that hide and display the columns, then Voce need not stick another div between the columns... <div class="row"> //primeiro while <div…
-
-1
votes1
answer79
viewsA: php file (with html) is not displaying content
Edit: Now that I have understood the rest of the code... so I could understand in the code the page will only be displayed if the GET['view'] is set, IE, to access the page would have to be php?…
phpanswered Michel Simões 1,236 -
2
votes2
answers362
viewsQ: Error in bouncycastle readObject() - Demoiselle-Certificate
I have been using the Demoiselle-Certification(2.0.0) for some time and today I came across the following error when called the Certificatemanager class the certificateManager.load(class):…
-
-1
votes1
answer417
viewsA: Problem with sending headers
At first the header will only work if it is the first sentence, there can be echo, text or anything else before it, the header must be the first PHP execution statement.
-
0
votes2
answers140
viewsA: Public method where a date is passed as a parameter, a parameter only
Thus: int numero = 20102015 char[] digitos = String.valueOf( numero ).toCharArray(); //desta forma, digito[0]+digito[1] = 20, digito[2]+digito[3] = 10, digito[4]+digito[5]+digito[6]+digito[7] =…
-
2
votes2
answers10294
viewsA: Enable/Disable button according to field validation
I made a change with the class obrig for the validated fields: $('#myform > input').on('input', function () { var empty = false; $('form > .obrig').each(function () { if ($(this).val() == '' )…
-
0
votes2
answers177
viewsA: Image problem
Based on this code posted, it should work like this: buttons[PrimeiroClick].setGraphic((new ImageView(imgs[Aleatorio[PrimeiroClick]])); buttons[SegundoClick].setGraphic((new…
-
4
votes4
answers10243
viewsA: How to align <li> items from a <ul> list below?
Do this, in case you need the container of ul to have the exact size of 380px as in the example, you will have to have a div on the outside with this measure for it: ul { list-style: none;…
-
1
votes2
answers425
viewsA: How to get the last (max) tabindex from an html form using jQuery
Here Voce mounts an array of tabs var size=$('#ui-tabs >ul >li').size(); Soon the last one will be the size -1;
-
3
votes1
answer2282
viewsA: How to remove the image border?
You must use: border: none; background: url("../img/Arrow_Circle_Right-32.png") transparent no-repeat; Background Transfer is to prevent older sites from implementing color in bg.... A cool tip, is…
-
1
votes1
answer62
viewsA: making error message variable?
If you didn’t pass, he doesn’t think: function Player(id, x, y) { Where is the z?
-
2
votes2
answers2072
viewsA: How to do that when submitting a form within an iframe, the page that has iframe is redirected?
If you want to open a new page, you can put an instruction on your page contained in the iframe so that when you finish receiving PHP it makes a js call: <script> window.open("suaPagina.php");…
-
1
votes1
answer45
viewsA: Strange characters in message subject, using wp_mail
You can pass the charset, saying what kind of encoding your HTML, since you enabled it by your headers in this way: $headers = array('Content-Type: text/html; charset=UTF-8');…
-
1
votes1
answer947
viewsA: (Hibernate2) Genericjdbcexception: Could not execute query - Closed session error while browsing the platform
When setting the database path just create an autoReconnect... By default the server disables the connection after certain idle time! In my case it’s like this:…
-
1
votes2
answers81
viewsA: Is it possible to make two Selects in a Try?
Yes, you can put several queries in the same Ry, and specifically in this case you are using for the catch the generic Exception, you can use other methods that fire a throw, surrounded in the same…
-
0
votes1
answer462
viewsA: Problem when receiving a radio button value
Check the documentation of how to instantiate the angular radiobutton to make use of the api. https://material.angularjs.org/latest/#/demo/material.components.radiobutton…
-
0
votes2
answers4206
viewsA: Fields aligned in form
I would not advise using this form to align the fields in the form, I believe that the most coherent form, would be each div that contains a label and an input, has 50% and float left... in this way…
-
1
votes1
answer500
viewsA: Fluid/responsive layout at least 940px and at most 1170px with bootstrap
You can determine, as in if, else if the behavior for each screen size, as up to x pixel, between x and y and larger than y, this way: @media screen and (min-width: 1171px) { //vai o código } @media…
-
1
votes3
answers78
viewsA: Step in a for cycle
You’re making a big mistake in your job. 1º- 30 -(-20) = 50. se sua ideia era que desse 10 voce deve colocar min=20, ou max+min(sendo 30+(-20)=10). 2º- Se voce quer que passe 10x no for seria (i=1;…
javascriptanswered Michel Simões 1,236 -
3
votes1
answer144
viewsA: Lock to avoid dragging in sortable
In the example in the link below, I inserted a block class not to allow the withdrawal of it, in this way, it receives the items but does not leave it. http://jsfiddle.net/sw4gs7nh/…
jquery-uianswered Michel Simões 1,236 -
1
votes3
answers131
viewsA: Why doesn’t the footer stay hidden and mess up the page
Look, I edited the html, where Voce put it <div><div> before the footer is </div></div> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta…