Posts by Lucas Torres • 775 points
80 posts
-
0
votes1
answer63
viewsA: How to make modification records in a Mysql Table (without using triggers )?
André, good morning If it is via some language, like PHP for example, you can create a log for example: <?php function gravaLog($text){ $data = date("d-m-y"); $hora = date("H:i:s"); $arquivo =…
-
1
votes1
answer695
viewsA: Run function without refresh and return function data
Actually, you will have to use AJAX. If you want to follow an example below using Jquery you can do as follows. Create a separate page with the function you want (I think this is more organized)…
-
1
votes1
answer402
viewsQ: Curl with Google Maps Directions API returning null
Below is the code I’m using: $arquivo = "destino.json"; $info = file_get_contents($arquivo); $lendo = json_decode($info); foreach($lendo->rotas as $campo){ echo "<b>Origem:</b>…
-
1
votes1
answer402
viewsA: Curl with Google Maps Directions API returning null
The Google Maps API uses HTTPS, add logo on cURL the following: curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);…
-
0
votes1
answer131
viewsA: Don’t send Push to users who no longer have the app?
William, good morning This answer I’m giving you is only logical, because I didn’t work with push(still rs) You said the return doesn’t come with the ID, and you don’t have to! You have the Ids at…
-
0
votes1
answer515
viewsQ: Capture return of a Webservice
I managed, via PHP to connect to a Webservice via SOAP, but I can not caputrar the return data. I made a var_dump in the return variable, and what is displayed on the screen follows below:…
-
0
votes1
answer28
viewsQ: Styles do not apply to elements coming via AJAX
I am mounting a page that is inserted 2 values. These values go to a page .php via AJAX and then the page returns all records from the database. Function that registers the data: function…
-
0
votes3
answers4692
viewsQ: Unable to start Activity Componentinfo
The app doesn’t work when deploying. It "crasha" straight. Follow the code and error: Actmain.java package desenvmoveluss.com.br.trabalho01; import android.support.v7.app.AppCompatActivity; import…
-
1
votes1
answer176
viewsQ: Maps API Cordova - Add multiple markers
I am using the code below to add several markers to the map. Each click a marker is added. In Chrome the code works perfectly, however, when generating code using Cordova the map is displayed but no…
-
0
votes1
answer68
viewsQ: Printing and vector allocation in php cli
I am making a program in PHP that simulates the allocation of programs in a Memory. The problem is that it does not allocate the data in the vector. It prints the vector as if it were the same after…
-
1
votes1
answer349
viewsA: Change table in mysql
Good Rafael, the easiest alternative would be to generate an edit button for each line. That is to say. Generate a button on while or a <a> and pass the edit url along with the id returned in…
-
0
votes1
answer106
viewsQ: Error in function Ordova and Angularjs
Below is the code I’m using. It’s the standard example of the Cordova connection check function. <script> angular.module("contato", []); angular.module("contato").controller("contatoCtrl",…
-
2
votes2
answers87
viewsA: Verification With Two Tables
Suppose: Products: 01 sugar 02 Café 03 Water 04 Potato Side dishes 02,01,03 02,03 03,01,04 Solution First, you should make a query to return all the data of a purchase in the accompanying table.…
-
0
votes1
answer622
viewsQ: How do you turn a javascript function into an angular "function"?
I have the following Angular code. angular.module("contato", []); angular.module("contato").controller("contatoCtrl", function($scope){ $scope.app = "contatos"; }); How to use a normal javascript…
-
0
votes1
answer572
viewsQ: $injector:modulerr
I get the following error: angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module contato due to: Error: [$injector:nomod] Module 'contato' is not available! You either…
-
5
votes1
answer5689
viewsQ: Difference between hours greater than 24 hours excel
How to calculate difference between hours in Excel when it exceeds 24 hours? Example: A1 = 05/01/2016 11:40:53 B2 = 06/01/2016 12:29:53 B2-A1 = 24h:49min But he returns 00:49…
-
0
votes2
answers620
viewsA: CRUD with Angularjs and PHP
Solved by changing the database colation to UTF8
-
1
votes1
answer614
viewsA: json_encode Empty
Problem solved. Apparently the error was in the database, specifically in its collation. I changed from Latin to UTF8, and it worked. Thank you
-
1
votes1
answer614
viewsQ: json_encode Empty
Below my PHP code. It takes the data from the database, puts it in an array and then goes through a json_encode. However, it does not print anything, how to solve? Note: Using print_r in the array…
-
0
votes2
answers620
viewsQ: CRUD with Angularjs and PHP
Good night! I got the following: var carregarUsuario = function () { $http.get("buscar.php").then(function (retorno){ console.log(retorno.data); $scope.usuarios = retorno.data; }); };…
-
1
votes2
answers72
viewsQ: Error opening network link
Good Afternoon, I am using the code below to open a folder over the network: $dir = "\\\SR9\Infraestrutura\Controles\Termos\A\\" ; $pasta = opendir($dir); echo "<ul data-role='listview'…
-
1
votes2
answers1362
viewsA: Access denied. (code: 5) PHP
Solution found It is necessary to configure the service with some network user who has access to the directory. I went to Start>Run>services.Msc and found the wampapache service. Then…
-
1
votes2
answers1362
viewsQ: Access denied. (code: 5) PHP
I am using the code below to try to read the files in a directory. $dir = "\\\\192.168.44.19\Controles\Inventario de Equipamentos\A\ " ; $pasta= opendir($dir); echo("<li…
-
2
votes1
answer53
viewsQ: Listview with hidden items in jquery mobile
Using the same concept present in http://demos.jquerymobile.com/1.2.0/docs/lists/lists-search.html I wonder if it is possible to just list the items when I search them in the searchbox. I don’t want…
-
3
votes0
answers1247
viewsQ: List directory by network
I am using the code below to read files: Locally it works, but when I put the variable $dir with a network path, as below, I get error: $dir = "W:/_Infraestrutura/Controles/Inventario de…
-
-1
votes1
answer982
viewsQ: Fix Bootstrap Column
Hello, I have 2 columns, one with a col3 and one with a col9. I would like the col9 to be fixed and the col3 to be rolled. How can I do it with bootstrap?
-
3
votes2
answers116
viewsQ: Leds and Arduino board
Good night, I am programming an Arduino uno using C. I am using an RGB led on three PWM outputs. However, now appears the need to turn on more leds, hundred leds at the same time, but in addition to…
-
0
votes1
answer196
viewsQ: Download file to server
I have the URL from where the file is downloaded. By clicking on it, the file is downloaded directly, without at least accessing and clicking on some link. That said I need a way to automate this…
-
1
votes1
answer1219
viewsQ: Increase PHP/Mysql script performance
Good Afternoon Currently, I have a PHP script that reads a CSV file of 6801 lines, and performs an INSERT as long as there are records. I am currently able to enter 19 records per second. In…
-
1
votes0
answers41
viewsQ: Auto-resizable images with Jquery Mobile
I’m using the classic example of listview present in documentation of jquery mobile. However, when using images of different sizes, I would like the image to automatically be the size of the…