Posts by Alex Agnar • 55 points
6 posts
-
1
votes2
answers59
viewsA: Loop does not return values on the screen
I was able to solve the problem with the following solution: function calculaCustoCompra(){ for(var i = 1;i < 10;i++){ (function(){ var id = i; var parametros = { tipo:…
-
0
votes2
answers59
viewsQ: Loop does not return values on the screen
Hello, I’m developing a purchase and sale cost calculation using JS and PHP. The JS me returns the values correctly, however does not send to the fields, If anyone can enlighten me I’d be grateful.…
-
0
votes2
answers44
viewsQ: How to Improve/Optimize this code?
I have the following code, and I would like to know if it has how to improve, and how to improve this code: $user = $_SESSION['nome_usuario']; $data = date('Y-m-d H:i:s'); $lote =…
-
1
votes2
answers108
viewsA: Changing values of a table row by row
I solved my problem this way JS: $('#calcular').click(function(){ var qtd = $('#qtd').val(); for (i = 0; i < 5; i++){ var id = '#Item' + i; } $.ajax({ beforeSend: function(){…
-
1
votes2
answers108
viewsQ: Changing values of a table row by row
I have a little problem. I have a table with stock values, and I need to change these values as follows. The customer will insert a quantity that he wishes to manufacture of a certain product, and…
-
1
votes2
answers444
viewsQ: Join returning many records
Hi, I’ve researched here about this error and I haven’t seen one that fits my problem, so my problem is that I have two tables, I need to get some information from table B and insert in the query…