Posts by Tafarel Brayan • 204 points
9 posts
-
1
votes1
answer1968
viewsQ: How to return a table, from a POSTGRES Function?
Hello, I’m trying to create a function in postgres, which at first is all correct, taking the return of function. When I run the function, it is returning all lines, but all only in a field as a…
-
5
votes1
answer861
viewsQ: How to run DOS command in JAVA with Administrator privilege?
Hello, I have a program where I need to every run of it, go on the server, pick date and time, and change on the local PC. I am running the following command line: Runtime.getRuntime().exec('DATE…
-
1
votes0
answers218
viewsQ: http.post is not working
I am trying to submit a form to an API with the http post. Angular, but I’m not getting it: Code: save(auditoria):Observable <{}>{ let headers = new Headers(); headers.append('Content-Type',…
-
0
votes2
answers167
viewsQ: Instruction jQuery only works by console
Hello, I have two instructions on jQuery that I use for: Mark a checkboxDisable a radio Buttons. The point is that these instructions run by the system does not work, but if I take the same and play…
-
1
votes2
answers1846
viewsA: Open dynamic button modal pressed via ajax
As @Gabriel Rodrigues mentioned, your button is not on the DOM an alternative is: $(document).on('click', 'classDoBotão', function(){ // codigo aqui }); Simply put, jquery will now search the page…
ajaxanswered Tafarel Brayan 204 -
0
votes3
answers1607
viewsA: Schedule php script in windows
You can create a file .bat run your php page, and your bat you put in the task scheduler. the contents of the bat will be as follows: php -f arquivo.php…
-
7
votes1
answer139
viewsA: Sort results with month and year
That way with the month of the kind sweep, have to use the FIELD in the ORDER BY SELECT * FROM tabela WHERE id_cliente = '$id_cliente' ORDER BY FIELD(mes, 'Janeiro', 'Fevereiro', 'Março', 'Abril',…
-
0
votes0
answers141
viewsQ: Problem of slow consultation of PROCEDURE
There is in my system an email sending routine. Where a bat windows executes a php file that sends the same. The problem is in a stored Procedure, that executed directly by the bank, brings the…
-
2
votes0
answers258
viewsQ: Permission problem uploading files
I created a product register that contains a upload imaging. The operation is being done normally, the file goes to the folder determined, and by the system I can even view the image of which I did…