Posts by Willian Lima • 281 points
28 posts
-
-4
votes1
answer52
viewsQ: Filter search block using regex
I’m trying to perform a filter using Regex to find the results that are within the option value. but I can’t take from the separate selects. when I use the expression : <option value="(.+?)"…
regexasked Willian Lima 281 -
-1
votes1
answer88
viewsQ: download is not performed via outputStream
I am trying to download a file. CSV that I have saved. However the download does not appear to me when I click the button and no error code appears. How can I test to see how far the procedure is…
-
0
votes0
answers11
viewsQ: Cause of Nullpointer in DAO
Good morning, good morning. I’m making the following mistake GRAVE: Servlet.service() for servlet [dispatcher] in context with path [/PortalSega] threw exception [Request processing failed; nested…
-
0
votes1
answer80
viewsQ: Convert query return to Integer
How can I cast a query for Integer? Follow what I tried to execute. public Integer validaPrincipal(String usuario, Integer tipo) { try{ return (Integer)…
-
0
votes1
answer29
viewsQ: Error in Relationship NoHibernate
I have the following classes User: import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.persistence.CascadeType; import…
-
2
votes3
answers69
viewsQ: Break query result in 2 lines
Good afternoon! I have the following question My query is returning a single line, but I would need it to return two lines, where the first line would be the return of "B" and the other the return…
-
2
votes2
answers843
viewsQ: Lock Radiobutton when selecting another radio button
Good afternoon. I have the following question. I must block the other radio Buttons by clicking on the radio button of the first check. Therefore, by clicking on the radio button prioritity1, the…
-
0
votes1
answer35
viewsA: Fields as checked or not, always bring the same value
To solve this problem I presented, I had to use javascript as follows: var choices = []; var els = document.getElementsByName('checagem1'); for (var i=0;i<els.length;i++){ if ( els[i].checked ) {…
-
1
votes1
answer35
viewsQ: Fields as checked or not, always bring the same value
Good morning, good morning. I am with a certain problem, where should be made the choice of 3 check fields, if the 3 fields are unchecked, return the empty field message, otherwise bring the values…
-
1
votes1
answer2077
viewsQ: Sending file to server via FTP via linux command line
Good morning. I have some doubts regarding a project I’m finishing using linux ( I don’t have much domain ). I have a program written in C that generates files. txt, I must make this program run…
-
1
votes1
answer71
viewsQ: Failed to read file. CSV
Dear, I have the following code, where I read a file . CSV and show it in a table. It even does the proposed, however returns me the error Notice: Undefined offset: 1 at the end of the file. This…
-
1
votes0
answers86
viewsQ: Error in libpq-fe library. h
I am using codeblocks and the library however I am with the following error: fatal error: libpq-fe.h: No such file or directory I have already added the path pointing to the header file by the…
-
1
votes1
answer309
viewsQ: Concatenate lines with the same code
When executing the query select * from ivr_interacao,ivr_business where ivr_interacao.codigo = ivr_business.idvisita and ivr_business.campanha = 5 order by start_time asc I have the following…
-
0
votes1
answer54
viewsQ: Show customer data by clicking name
I need to have you show me a list of the clients' names, and when you click on a button or the client’s name, the customer’s data will appear, but I have no idea how to proceed. I tried to show the…
-
0
votes1
answer40
viewsQ: Generate file D-1
How to perform the select of data in format D-1 (current day - 1), what would be in VBA a AGORA() - 1, how it would be in postgresql? I have the following query and would like to take yesterday to…
-
1
votes0
answers191
viewsQ: CSV file via FTP automatically
Dear, I have a doubt, I have a script in php that already creates a CSV file for the machine itself. I need this CSV to be sent to an FTP automatically daily, however I am not able to think of the…
-
1
votes4
answers67
viewsA: Help with $_SESSION
Try removing the ; from the end of the Session variable. When you use it this was you are finishing the echo together. Edit: As the colleague said, it only takes one echo to start concatenation. The…
phpanswered Willian Lima 281 -
2
votes1
answer473
viewsQ: record time in Postgresql database
In the application I inform the start and end time of the activity, and save this information in the bank. Segue Query: $status = $_GET['status']; $intervalo = $_GET['intervalo']; $dataini =…
-
0
votes3
answers113
viewsQ: Is it possible to update to 1 table using another condition?
I have the following query: update ivr_contatos,ivr_campanha set ivr_contatos.tentativas = 0 where ivr_contatos.status = 0 and ivr_contatos.tentativas >= ivr_campanha.qtdtentativas the doubt is,…
-
1
votes1
answer520
viewsQ: Format csv via php
I have the following code, where it generates a csv spreadsheet. <?php require_once ('dbacess.php'); // output headers so that the file is downloaded rather than displayed header('Content-Type:…
-
0
votes1
answer494
viewsQ: Save to database via javascript
My doubt consists in the following, I have the following form <form name="frm_warning" id="box-register" method="POST" action="controllerWarning.php"> <h2 class="m-t-0…
-
1
votes4
answers191
viewsQ: Assign more than one value to a checkbox
I have a relatively trivial doubt, but I haven’t found the solution anywhere. When I declare the following tag echo ' <tr> <td align="center">'.$skill.'</td>…
-
0
votes0
answers120
viewsQ: php commented inside the console
I have the following test code: <html> <head></head> <body> <?php echo 'teste'; ?> </body> </html> should show only written test on screen, however when…
-
0
votes2
answers149
viewsQ: transformar Y-m-d H-i-s em d-m-Y H-i-s
How do I change a date that comes from the database as Y-m-d H-i-s (2018-04-24 16:07:17) in d-m-Y H-i-s (24-04-2018 16:07:17) in php? I tried to perform this operation with the date command, but it…
-
0
votes1
answer62
viewsQ: Recording of Logs in linux
I have the following code in php <?php function logs($texto){ date_default_timezone_set('America/Sao_Paulo'); $hora = date("H:i:s"); $data = date("d-m-Y"); $log = fopen("log/".$data.".txt","a+");…
-
2
votes4
answers1977
viewsQ: Select All checkbox by clicking a checkbox
I looked for the solution here in the forum, however they did not work. I want to select all the checkbox by clicking only 1 checkbox (selects all). Follows my code: <script…
-
0
votes2
answers350
viewsA: How does PHP run time work?
If I understand your doubt well, PHP runs every request, when it is 'called' it creates a session that would be an open page in the browser, this session is active until the browser remains open (…
-
0
votes1
answer1224
viewsQ: SQL Server connection in the Laravel
Guys, I’m making the following mistake: sqlstate 08001:[Microsoft][odbc driver 11 for sql server] tcp provider: no connection can be made because the target machine actively refused them. I am using…