Posts by Gustavo Tinoco • 365 points
18 posts
-
0
votes2
answers198
viewsA: Automatically update data obtained from json api - Volley
You can use the Alarmmanager and set each time to perform the request again. However the implementation of this Alarm to call a function you must create a service. It’s a bit complex to implement,…
-
1
votes3
answers4673
viewsA: Pass data between Fragments
There are several ways to do this. Shared Preferences Stores proven primitive data in key-value pairs. Internal Storage Stores private data in device memory. Sqlite Databases Stores structured data…
-
0
votes3
answers1696
viewsA: How to transpose rows into columns?
If you want to count the values. Use the SUM Example.. SELECT sum(Jan), count(Fev), sum(Mar),..... FROM tabela. Result will be the sum of the rows in the columns in January, February, etc...…
-
2
votes1
answer982
viewsA: Float Right is superimposing div and invading div from below
It’s simple, follow the example.... Example: .clearfix { overflow: auto; } .elem { border: solid #6AC5AC 3px; position: relative; } .clear { clear: both; } <div class="elem"> <img…
-
1
votes1
answer3138
viewsA: Error: SQLSTATE[HY000] [1044] Access denied for user 'root'@'localhost' to database 'login'
Exchange localhost for 127.0.0.1. And give the setAttribute. Documentation Create in a separate file the connection.php Give the include on every page that uses it. define("PORT", "3306");…
phpanswered Gustavo Tinoco 365 -
4
votes4
answers1605
viewsA: Turn Messagedigest MD5 into a string
Try it like this, this is what I use in my algorithm: String str = "teste md5"; try { MessageDigest md = MessageDigest.getInstance("MD5"); byte[] array = md.digest(str.getBytes()); StringBuffer sb =…
-
3
votes2
answers9850
viewsA: How to input accepting only letters?
Hello, you can use Jquery to do this or use javascript without it. Example with jQuery, no need to move on input, just be between tags <script></script> $("#exemplo").on("input",…
-
0
votes2
answers204
viewsA: Save values whenever a new line is added via Trigger
From what I understand the problem is you update the LINE_TOTAL adding the old value with the new one inserted. Like this, test if this code would solve your problem. This select you give is…
-
0
votes2
answers45
viewsA: Clauses and JS message
When it is truck or bitruck, disable the input using the message you can use Alert(), more or less like this. if($DsTpVeiculo == 'Bitruck' || $DsTpVeiculo == 'Truck'){ echo '<script…
-
2
votes2
answers245
viewsA: Inserting data in PHP
Opa all right? Considering it is a PHPOO I can give this example. In SQL you cannot do in a query the Insert in two different tables I suggest at the end of the method of saving the clinic use a…
-
0
votes1
answer911
viewsA: jquery datatable grab values from an input
Boss I have something similar. In case my table contains quantities and items received. In case the Rows I created put and in the loop I get td.Uantity And in input I do the same and put in find…
answered Gustavo Tinoco 365 -
1
votes1
answer511
viewsA: Android - how to save typed text to an Edittext
You can use Sharedpreferences. It is used type when you login it saves the username and go updating and saving the username values. Use your imagination...…
-
0
votes2
answers668
viewsA: Asynchronous Call to a Restfull Webservice
I am on a similar project. WS will return the data to its main Activity. The way to solve by Assynctask that really does what you want, rather than waiting for the thread’s time and rather do what…
-
1
votes1
answer816
viewsA: PHP and Javascript - Automating one page printing function from another page
This is Hara. You can create on the Print button onclick="window.print()" And in CSS use the imagination of css with @media print I think that the case of Session is complicated because the…
-
2
votes2
answers578
viewsA: Magento: what’s the best version?
From what I saw of customers and even got to mecher with Magento, unless mistake until February 2016 Magendo 1.9.1 was used by large companies(Walmart, Nike,ford). But payment companies also have to…
-
1
votes0
answers840
viewsQ: Input and Json problems with quotation marks
Hello. I’m developing a web application using Springfrontend and a Restful API in the backend. The front is in javascript taking data from the API. There was a problem.... When quoting a field in an…
-
0
votes2
answers4563
viewsA: How to create an executable in java + Mysql database?
It has to be fixed IP’s or DNS(nameserver) connection and the JBDC driver connects them correctly with this data. I believe that if they are correct there will be no problems arising.
-
1
votes2
answers2812
viewsQ: Problem generating PHP/HTML for PDF
I have a certificate generator that are implemented with HTML/PHP I used DOMPDF but it does not assign the variable $html=' <codigo todo> '; it gives error in IF’s commands after I assign the…