Posts by Gustavo Emmel • 596 points
26 posts
-
1
votes1
answer54
viewsA: LIKE with explodes PDO
Hi Try to check if there is value at position [0] isset(array[0]) true case, then add in query string
-
0
votes4
answers60
viewsA: Averaging
It seems to me a question of mathematics. Sum first and divide later. I suggest using the function parseFloat from Javascript to values n1 and n2 instead of Number var p1 = parseFloat(7.0) var p2 =…
javascriptanswered Gustavo Emmel 596 -
0
votes0
answers41
viewsQ: mysql does not respect utc date Where
I’m trying to do a query to return the records of a particular month, but mysql returns records from the previous month, example: SELECT CREATE_TIME FROM SALE_ORDER WHERE CREATE_TIME >=…
mysqlasked Gustavo Emmel 596 -
1
votes2
answers250
viewsA: Save data to various tables
I think PHP has a native function (mysql_insert_id) to return the generated ID. Try to take a look at this documentation: http://php.net/manual/en/function.mysql-insert-id.php ex. <?php $link =…
-
0
votes1
answer77
viewsA: Many lines in a csv file
I work in PHP. When I have a processing of this type that 'delays' the server time, I make a page that will consume a service that will be processed in the background by the server. What most of the…
-
0
votes1
answer256
viewsQ: Problems using callback on a Ws
I am implementing integration with a WS which searches the data on the basis of cnpj. When consulting the WS and request a callback, it returns me the following ERROR: Uncaught Syntaxerror:…
-
1
votes1
answer64
viewsQ: Disabling eol in bitbucket
As version control tools I use Bitbucket and Sourcetree. It just seems like they get lost in the eol, saying that the same files are different. It seems to me that the solution is to disable eol in…
-
0
votes1
answer112
viewsQ: query optimization that adds values according to a clause
Hi. I have a query that I must bring two columns, and one of the columns will return the value of a column, plus the sum of another column respecting the Where clause to add the values. I came to…
-
1
votes3
answers121
viewsQ: Link to edit another window open
Next, I have a page that, by clicking on a button, opens a new window. On this new page I would like to put links that affect the page that generated this window. Someone knows how to do?…
-
3
votes8
answers64831
viewsA: How to check if a checkbox is checked with PHP?
The big idea is in the form to name the checkbox as vector, as the example below: <table border="0" width="100%"> <tr> <td class="menu" width="130"> Treinamentos: </td>…
phpanswered Gustavo Emmel 596 -
1
votes1
answer685
viewsA: Form does not send all variables by POST
I created the following page func_inserir.php and worked for this variable: <?php $a = $_REQUEST['PLIQ']; print $a; Tries to capture values via $_REQUEST.…
-
8
votes3
answers403
viewsQ: Agile development and documentation update
Taking into account the second premise of the agile manifesto: “Software in operation more than comprehensive documentation" According to the agile practices, Scrum, XP, etc..., if during…
-
11
votes3
answers941
viewsA: What is the purpose of the daily meeting in the SCRUM methodology?
When I started studying the SCRUM methodology and saw that I had such a daily meeting some questions of the following kind came to mind: - Isn’t this meeting a waste of time? - What the hell is…
answered Gustavo Emmel 596 -
6
votes4
answers1428
viewsA: Application of 5S in agile methods
A while ago I wrote a blog post on the subject: http://gustavoemmel.blogspot.com.br/2014/07/cinco-s-kaizen-aplicados-no.html Basically the 5S are: Seiri: separate; Seiton: to organise; Sap;…
-
-6
votes2
answers3902
viewsA: Tests, TDD, Unit Test, QA and similar. What is the difference between concepts about tests?
I have to disagree on the above colleague’s parts. About the SQA methodology - Software Quality Assurance, which consists of monitoring the processes of software engineering and development. This…
-
1
votes1
answer174
viewsA: Send select to print with php
I use while to generate select dynamically, hopefully the example below will help you: <?php $select = pg_query($conexao, $sql->menu_logado($entidade)); echo "<select name=\"codseg\"…
-
1
votes2
answers2738
viewsA: How to clear screen data?
i use a Function in javascrip in which I pass the page link that is the form. ex.: function limpar(){ self.location = "./meusite.php?a=sda232"; } then call Function through the onclick of the button…
-
1
votes3
answers3859
viewsA: Count the columns of a Mysql table using PHP
Buddy, you can use the command: pg_num_rows * Retorna o numero de linhas dessa consulta * * * @return Integer : Numero de linhas da consulta or if you are an update you can use this:…
-
0
votes3
answers860
viewsA: Extracting Numbers from a String
Hi. I did an Object Orientation proof that the objective of the exercise was to receive a string of type "1 + 2 * 4" and to separate what was signal and what was number and present the result of the…
-
0
votes1
answer1156
viewsQ: Changing sequential values of a multidimensional array
In the framework I develop (PHP language), I use multidimensional array for HTML reporting. There is a particular report that I cannot properly sort in the SQL query, having only all the data by…
-
4
votes2
answers435
viewsQ: Using BREAK within a while
Hi. I have a php function that returns N values from the database. For each returned data I must do an validity check, and if one of them does not pass the validation, it is unnecessary to validate…
-
0
votes2
answers767
viewsA: Take data from Forms
You can use the following javascript to send the data of two or more Forms: <script language="javascript"> function() submitForms{ document.getElementById("firstform").submit();…
-
0
votes4
answers5927
viewsA: Why split layers? What are the benefits of a multi-layered architecture?
MVC is simply separating the 3 layers of Model, View and Controller. It’s a simple paradigm, an idea that you should take into account whenever you develop classes. Always looking to not mix the…
-
1
votes2
answers278
viewsA: How to modify the input file path?
A solution in windows 7 for your problem would be to configure SAMBA and map the network drive in your explorer. So the server folder would be accessible as, for example (X:)
-
0
votes3
answers415
viewsA: Automatic method execution
An unusual way to solve your problem without using the CRON would be with a script that runs an infinite loop with the following content (or something like): <?php while(true){ checkRemoteSite();…
-
2
votes3
answers10283
viewsA: Rename image name uploaded
Hi. I use the following methods to upload images: function upload($foto){ $erro = $config = array(); // Prepara a variável do arquivo $arquivo = isset($foto) ? $foto : FALSE; // Tamanho máximo do…