Posts by Damon Dudek • 370 points
15 posts
-
1
votes1
answer169
viewsA: How to leave the position of a fixed div according to the Raddiobutton change
Try to change the position and remove the label, because I did not identify any label element inside your radioItens .radioItens{ position: relative; margin-left: -105px; display: block; text-align:…
-
4
votes1
answer436
viewsA: How to add PHP values inside a "for" to bring the total
Simple, declares a variable outside of the for, and sums it inside the for. By following your code: $total = 0; for($x=1;$x<=4;$x++){ if($_POST['p'.$x] != '0'){ $sql = "SELECT produto, preco FROM…
phpanswered Damon Dudek 370 -
1
votes2
answers148
viewsA: Fixing iframe video when scrolling page
You can use jquery to do this. Follow the example I built: <!DOCTYPE html> <html> <head> <title>StackOverflow</title> <script src="js/jquery-3.2.1.min.js"…
-
0
votes3
answers405
viewsA: Select only latest Mysql Chat messages
Use the Mysql limit, below the W3C reference to help you: https://www.w3schools.com/php/php_mysql_select_limit.asp Example: SELECT m.dono, m.dest, m.recebido, m.data, IF(m.dono=43, (SELECT nick FROM…
-
1
votes4
answers97
viewsA: Create a SELECT to bring the difference of two tables
To bring all bisemanas that are not linked to any billboard, select below does this: SELECT * FROM bisemanas bs WHERE NOT EXISTS (SELECT 1 FROM outdoor_bisemanas obs WHERE bs.id_bisemanas =…
-
2
votes1
answer1140
viewsA: Trigger to upgrade stock
Missing to identify Rigger’s variable, so yes: :NEW (missing the two points) CREATE OR REPLACE TRIGGER ATUALIZA_ESTOQUE BEFORE INSERT ON ITEMCOMPRA REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW…
-
2
votes1
answer41
viewsA: SVN does not check Branch changes
What you can do, is a manual merge in case your SVN has given some bug. First, try to clean up the trunk and branch in question. If the problem persists, make a copy of the branch and paste it into…
-
0
votes2
answers245
viewsA: order by in oracle subquerys
So for what you need it works: with ordens_result as (select Ordem_Id, Equipe_Manut from Cordemserv where Status = '1' and Prio is not null order by Equipe_Manut, Prio) select C1.Ordem_Id as Ordem…
-
2
votes2
answers429
viewsA: How to popular an object with the return of a Webapi query?
You can use C#Serialization as steps below: import of the class: using System.Xml.Serialization; Define your XML elements in the class: [XmlRoot(ElementName = "ArrayOfCliente", Namespace =…
-
0
votes2
answers271
viewsA: Check if file exists for 20 seconds C#
If you’re just waiting that long, you can use the thread timer. just add the code below before the file check: Thread.Sleep(20000); Remark: In case you are not using, you need to import below: using…
-
0
votes1
answer639
viewsA: Ionic 2 how to add Authorization in header
Here’s what you do. Set your header before your request: let headers = new Headers(); headers.append('Authorization', 'Bearer token'); Make the call by passing the header as the object, just like…
-
2
votes3
answers267
viewsA: Input email display only suggestions for EMAILS
Email suggestions for an email field are automatically made by the browsers, you just give the email name to your input. While e-mail validation, there is already a native feature of HMTL5, just set…
-
1
votes2
answers1188
viewsA: Manipulating XML with Javascript
You can use the code below to do this, but you need a father to sew the parse: var xml, parser, xmlDoc; text = "<children><child id='child1'/>" + "<child id='child2'/>" +…
-
1
votes1
answer680
viewsA: Mask input when loading page
You can take your object on onload and call the function as below: var obj = document.getElementById("txt-telefone"); mascara(obj, mtel ); Thus remaining: window.onload = function(){ var obj =…
-
1
votes2
answers743
viewsA: Materialize - How to align the footer always below?
What you can do is create a class in your CSS by placing the following code: position: absolute; bottom: 0;