Posts by Thiago Lopez • 156 points
24 posts
-
1
votes3
answers136
viewsA: How to count from "1" instead of "0" in a Javascript array
Do so, order from 1 and ready. var let = [ { nome: 'Audi', num: 1 }, { nome: 'HB20', num: 2 }, { nome: 'Lamborghini', num: 3 }, { nome: 'Maserati', num: 4 } ]; for (let i = 1; i < let.length;…
-
0
votes2
answers63
viewsA: What does the %u do?
Each conversion specifier has a corresponding type of result argument defined in the C specification. The conversion directives %u and %d actually accept the same entries, as you noted, but the…
-
2
votes2
answers65
viewsA: List data from Procedure sqlsrv PHP
try so friend. $query = "EXEC PROCEDURE @CodigoEmpresa = ?, @DataReferencia = ? "; $prepare = $con->prepare($query); $prepare->execute(); while ($result = $prepare->fetch(PDO::FETCH_ASSOC))…
-
-2
votes1
answer900
viewsQ: Error: No support for keyword: 'Provider'
I have to maintain a system and it is with a problem that I can not solve for 1 month because of a connection failure. There is no support for the keyword: 'Provider'. Description: An untreated…
-
0
votes1
answer326
viewsQ: autocomplete bring information to 2 different fields
The problem I am going through is due to the fact that I need to return 2 different values for different fields, from an autocomplete that is working in the field "product". It searches via sql and…
-
0
votes1
answer88
viewsQ: take jquery autocomplete value for dynamic online calculation
I need to take the returned value of the autocomplete to make a sum in a dynamic list of products, and already does the calculation of value and quantity and now I needed to insert a new column…
-
0
votes1
answer176
viewsQ: Sending PDF and JPEG files with Jquery/ajax
I am trying to implement a pdf or jpeg file upload with jquery ajax and am not succeeding, so I am in need of a help if possible. Trying to use jquery in conjunction with PHP, but cannot pass the…
-
0
votes2
answers80
viewsA: Date sorting problem with DATATABLE plugin
Faced with several attempts I found a pleasant solution, but generates an error that I could not decipher yet, but the result is what I need. "aaSorting": [[6, 'DESC']], this shape I can sort by…
-
0
votes2
answers80
viewsQ: Date sorting problem with DATATABLE plugin
Friends, I am having trouble sorting a table with Datatable plugin and I do an SQL query already ordered by a field and when it presents the table with the plugin it reorders otherwise and I have…
-
1
votes0
answers167
viewsQ: receive two autocomplete values and pass to < input type='Hidden' >
how do I pass on a value 'ID - valor' of a autocomplete jquey and show only the 'valor' in the field input and pass the 'ID' to another input guy hidden. PHP if (isset($_GET['term'])){ $return_arr =…
-
0
votes0
answers20
viewsQ: how to receive dynamic data from a form and write them to the BD
my difficulty happens because I created a dynamic grid where I have sequential lines for product inclusion, so I don’t have the names of the traditionally fixed input. In this case I’m assigning…
-
3
votes2
answers728
viewsA: How do I get Mysql to accept a 1.457.40 number?
Guy like our friend said before, in mysql he uses the American currency standard that follows this pattern '15,123.50' . Unlike the Brazilian standard that is '15.123,50' which is unlike how you…
-
0
votes1
answer943
viewsQ: Dynamic field validation with Jquery.validate()
I’m having difficulty validating the fields of a dynamic table using the plugin jquery.validate() where the input are sequential. JS $("#addLinha").on("click", function () { // ADD QTD DE LINHAS…
-
0
votes3
answers152
viewsA: Use Session or use database?
I recommend to use SESSION for your user’s personal data for use of the application and only this, the rest would be done by queries to the same BD. How much the number of users and simultaneous…
phpanswered Thiago Lopez 156 -
1
votes2
answers767
viewsA: Product registration - create features
see the table ordering the lines and calculating the total value: $(document).ready(function () { var contador = 0 ; //adiciona nova linha $("#addLinha").on("click", function () { contador++;…
-
-3
votes2
answers767
viewsQ: Product registration - create features
I am having great difficulty implementing dynamic results in my application .... 1 - When deleting a row, sort the rows correctly 2 - Calculate GENERAL shopping-cart total 3 - Recalculate the GRAND…
-
1
votes3
answers838
viewsQ: take input value Hidden within a <td> tag
how to get value of this input inside the table with data from the bd: HTML CODE <table id="tbl_3" class="table table-striped table-bordered table-hover"> <thead> <tr> <th…
-
1
votes2
answers68
viewsQ: problem with dblclick event
I have a code that was working and from one day to the next it stopped working, I don’t understand why this !! It’s not even firing the event ... I followed the code below: <table style="width:…
-
1
votes1
answer55
viewsQ: Insert various products + a rental date for each
I am with a tremendous doubt and without any north of how to solve. I need to select products to rent to a client and inform a date of the rental time of the same, but I do not know how to present…
-
0
votes3
answers281
viewsA: Longer date search for a specific ID
After much research I found the solution to my problem and I will pass on the solution !! SELECT * FROM test WHERE data = ( SELECT max(data) FROM test WHERE id = 1 ) Thank you all for your…
-
1
votes3
answers281
viewsQ: Longer date search for a specific ID
I have a problem in a SQL where I need to find the biggest date of a ID specific, where it has several records of this same ID: Dice: ID - date - name 2 - 10/10/2004 - cesar 5 - 10/10/2008 - Japan 4…
-
0
votes2
answers60
viewsA: result in 2 table columns
Good afternoon everyone, thanks for all your help but I already solved my problem ... I followed the source code where I separate the results of the query in two columns independent of the records…
-
1
votes2
answers60
viewsQ: result in 2 table columns
Good afternoon friends, I’m having trouble assembling a table with result in 2 columns with database information. <table style='width: 100%;' border='1' cellspacing='0' cellpadding='0'>…
-
0
votes2
answers719
viewsQ: Bring repeat records from 3 columns in the same table
I have a table with transport voucher data of my company employees: nome ! valor1 ! valor2 ! valor3 teste1 ! 6.50 ! 0.00 ! 0.00 teste2 ! 4.30 ! 2.80 ! 1.10 teste3 ! 8.40 ! 1.10 ! 0.00 teste4 ! 2.85…