Posts by Ronaldo de Lima • 81 points
12 posts
-
-1
votes1
answer63
viewsQ: query result without refresh JS
Aloha, when the client enters my application he will see a form for scheduling, is there any way to pass the information without giving refresh? when the customer selects the day, shows the opening…
-
1
votes2
answers256
viewsQ: Subtract value using JS
Until now my code was using a sum of values Example: const inputs = [...document.querySelectorAll("input[class='serv']")]; const res = document.getElementById("resultado"); const total =…
-
1
votes1
answer48
viewsQ: Return least repeating records
I have a table registro structured 'id(AI)', 'b1(INT 2)', 'b2(INT 2)', 'b3(INT 2)', 'b4(INT 2)', 'b5(INT 2)' which receives the values entered in the FORM of the insert.php page, example how data is…
-
0
votes0
answers18
viewsQ: Pass PHP variable data to JS outside of HTML
Hello, I’m trying to include a JS chart on my PHP page, the problem is that all the data comes from the queries on the PHP page and the chart only works if it stays in a file. js separate. this is a…
-
0
votes2
answers57
viewsQ: how to consult by month?
In the BD table I have a column "day" type "date" keeping "yyyy-mm-dd", I’m trying to make a query that returns me the current month, I’ve tried many ways and nothing. <?php session_start();…
-
1
votes1
answer216
viewsQ: Conflict between jquery.js
I’m conflicted between the <script src="assets/vendor/jquery/jquery-3.3.1.min.js"></script> and the <script src="//code.jquery.com/jquery-1.12.4.js"></script> <script…
-
0
votes1
answer51
viewsQ: separate array and query in bd
have a variable $servicos that receives the list of services registered in the BD through this code. $query_servicos = "SELECT * FROM servicos ORDER BY nome ASC"; $result_servicos =…
-
0
votes2
answers123
viewsQ: update div with checkbox value marked
const inputs = [...document.querySelectorAll("input[class='serv']")]; const res = document.getElementById("resultado"); const total = res.querySelector('[name="total"]'); const nomes =…
-
1
votes1
answer51
viewsQ: update the div with the checkbox value marked
Let’s cut to the chase, I thank you in advance. const inputs = [...document.querySelectorAll("input[name='nomes[]']")]; const res = document.getElementById("resultado"); inputs.forEach(x =>…
-
0
votes1
answer43
viewsQ: consult and add BD result
I have a table (dia) receiving the data during the days: (id, dia, cliente, func, servicos, valor, produtos, valorp, fdp) (1, 2018-11-01, cliente1, func1, servicos1, 0++, produto1, 0++, D ou C) I…
-
0
votes1
answer53
viewsQ: calculation with BD data, bring service, value and total
I need to save cliente, serviço, valor of a service. The first problem is to be able to return the total value (the sum of the services). Man form until the moment is like this: <form…
-
2
votes1
answer891
viewsQ: Autocomplete with data coming from PHP
I am trying to create a form to register services performed, so I came across the first problem, I am trying to keep as light as possible because there is a lot of data. I intend to store the…