Posts by Rene Sá • 823 points
27 posts
-
0
votes1
answer44
viewsQ: Help with php and json
I’m having trouble properly displaying in JSON, a result originated from two tables in my database. The situation is as follows: I have orders in a table (A) and the products in that order in…
-
1
votes0
answers116
viewsQ: Pick up information typed in an iframe
I have an HTML page that has an element iframe. This iframe has a register. I need to save the information that is typed within iframe (another domain). In my research, I checked the possibility of…
-
0
votes1
answer737
viewsQ: Consult Receita Federal website data with PHP
Performing a search, I found some examples fill out forms from third-party websites and capture the answer. Most of these examples use the PHP Curl library. On the website gigasystem, there is a…
-
0
votes2
answers1534
viewsQ: How to remove blank line "Return"
I have a TextBox where the user will type. I cannot leave any blank line (Return " r") before sending to the database. In my code, it works well when you find \r\r, but not when they have \r\r\r How…
-
1
votes1
answer85
views -
0
votes1
answer1057
views -
8
votes3
answers68478
viewsA: Display PDF file in the body of the HTML page
Put a iframe with the PDF file link: <iframe src="http://devsa.info/teste.pdf" width="600" height="780" style="border: none;"></iframe> UPDATE (2 Iframes): <table cellpadding="0"…
-
1
votes2
answers623
views -
7
votes1
answer1346
viewsA: How to make scrollview scroll always visible
In the XML file, add the code android:fadeScrollbars="false"
-
5
votes4
answers7268
viewsA: Get a Youtube video ID from the URL
You can use the explode $video = "https://www.youtube.com/watch?v=jNQXAC9IVRw"; $id = explode("?v=", $video); Other examples here…
-
0
votes1
answer115
viewsQ: Browser only responsive HTML page
I created a responsive html page, to run mainly on smartphones. However, on portable devices, in vertical position (standing), the background image does not "resize". Already in the browser, if I…
-
0
votes2
answers289
viewsA: View grouped data
Try it this way, using DISTINCT. SELECT DISTINCT * FROM tec_postagens tp INNER JOIN tec_historico_status th ON tp.protocolo=th.protocolo WHERE tp.protocolo = '1168' ORDER BY tp.protocolo DESC,…
-
2
votes3
answers806
viewsQ: Exchange array value when null
I have a Webservice in PHP that returns me a JSON with values from a mysql database. I need that, in an Array, whenever there is a null value (when = null), be replaced by white (= ""). I’m doing it…
-
0
votes2
answers1713
viewsA: I need to squeeze my layout when I open the keyboard
An attribute that would work for your case is android:layout_alignParentBottom="true", What he does is line up view always on the keyboard (when it appears). But you need to be using RelativeLayout.…
-
4
votes1
answer723
viewsQ: json_encode - Invalid JSON
I created a PHP code to fetch information from a database (Mysql) and "transform" into JSON. I used the json_encode for such. The output JSON seemed to be correct, but when I use some JSON…
-
4
votes2
answers439
viewsA: How to select data from different tables
It can be done that way: SELECT a.name, b.term_taxonomy_id FROM wp_terms a, wp_term_taxonomy b WHERE a.term_id=b.term_id…
-
3
votes1
answer247
viewsA: Problem when climbing APK
The code you are using compiles the latest version of Google Play Services, but the change has not yet been "fully implemented". Try to use: compile 'com.google.android.gms:play-services:5.0.89'…
-
13
votes1
answer11696
viewsA: How to resume default settings in the Visual Studio editor?
In the Tools menu, click "Import and Export Settings". Select "Reset all Settings". Choose whether to back up the current configuration.
-
3
votes1
answer177
viewsA: How do I redirect a domain to a subdomain?
You can add these lines in the know file .htaccess: RewriteCond %{HTTP_HOST} ^novodominio.com.br RewriteRule ^(.*) http://nomedousuario.dominio.com.br/$1 [P] With this code, you will access the…
-
3
votes5
answers45121
viewsA: How to use a PHP variable in javascript?
Try it like this: <?php $variavel = "texto"; ?> <script> var variavel = "<?php echo $variavel; ?>"; </script>
-
1
votes2
answers376
viewsA: How do I handle the event generated by the Windows Phone 8.1 back button?
You are creating a universal project? Try: public static event EventHandler<BackPressedEventArgs> BackPressed
-
2
votes3
answers1532
viewsA: Session is not being destroyed with session_destroy()?
Since no one has answered so far, I’m going to give a solution that I’m not sure is the most valid. In the "editor.php" header insert: <script type="text/javascript"> window.history.go(1);…
-
0
votes4
answers267
viewsA: Windows Phone, error saving text (Isolatedstorage)
I solved the problem by inserting the code that "reads" the file (.txt) at startup of the app: public partial class MainPage : PhoneApplicationPage { // Constructor public MainPage() {…
-
1
votes4
answers267
viewsQ: Windows Phone, error saving text (Isolatedstorage)
I’m trying to run an app (Windows Phone 8.1) that, for now, will only save a text in a txt file in the phone’s memory and should also read the txt file. When trying to save the text, Visual Studio…
-
1
votes1
answer102
viewsQ: Windows Phone, how to import data (Isolatedstoragefile)?
Is there any way I can import a data file (txt) into Windows Phone’s internal memory using "Isolatedstoragefile"? I need to import a list of customers, and be able to edit by the device.
-
0
votes3
answers647
viewsA: GPS location returns only null (0.0.0.0)
I spent several days "stuck" in this code, because always the location returned me 0.0 and threw me in the Pacific Ocean. I managed to solve it, although I didn’t use the tracking code itself. As…
-
2
votes3
answers647
viewsQ: GPS location returns only null (0.0.0.0)
I have an application for Android devices, with several addresses. By clicking on any address, I wanted to take the user’s current location and play link google maps…