Posts by Guilherme Lirio • 470 points
34 posts
-
-6
votes1
answer58
viewsQ: Return the original radio button image when selecting another
Friends, good afternoon. I’ve been racking my brain for 2 days because of this: I have 2 radio button that has an icon and a text: when I select one, the icon is replaced by a lighter icon (white),…
-
0
votes1
answer35
viewsQ: Notify every 2 hours if new data is entered
I’m trying to create a system so that the Cron run a PHP file every 2 hours, and check if there has been any record inserted in a given table, if there are new records, know the total amount of new…
-
2
votes2
answers58
viewsQ: Exchange array data between’S' and 'N'
I have a function that I will adapt to a button, which will exchange a data within an array, between S and N. The code I have is: var array =…
-
1
votes1
answer23
viewsA: Code Injected
F7 itself has this function: app.router.back(); //Volta para a página anterior. or app.router.navigate('/'); //Volta para o index, configurado nas rotas.…
-
0
votes1
answer153
viewsA: Local notification smallIcon does not show IONIC
Localnotification smallicon must have the correct file layout (.jpg, or . png, etc). Test like this: smallIcon: 'res://iconnotificacao.png' Replace by Your File Extension.…
-
1
votes1
answer54
viewsQ: Hide/Show navbar according to scrolling
Next friends, I have this code: //Function that hides/shows subnavbar according to scrolling $('#view-2').scroll(function() { var topo = $(this).scrollTop(); // = 0 if (topo > 0){…
-
3
votes2
answers252
viewsQ: How to separate data from arrays into lines?
I ask for one more help: I have a two-dimensional array, and I wanted to separate it into rows in a column, for example: Time 1 Jogador 1 Jogador 2 ... Time 2 Jogador 7 Jogador 8 ... I got to the…
-
1
votes2
answers59
viewsQ: Error in the division by groups
Good morning. I’m making code in javascript, to divide an array of names into groups. It’s just an example, but I’ll use it in a system for football. I want to do everything dynamically, but let’s…
javascriptasked Guilherme Lirio 470 -
0
votes1
answer49
viewsQ: If inside the Loop does not work properly
Good evening. I have the following function: function verificaOnOff(){ for(var i in tbModulos){ var mod = tbModulos[i]; $.get('http://'+ mod.ip +'/rele', function(data) { if (data == '1') {…
-
1
votes1
answer187
viewsQ: PHP does not give error, but also does not register correctly
I have a login, that if the user logs from another cell phone, I register in my BD the new playerID (onesignal) it. The login works perfectly, but does not register the new playerID. And no error,…
-
0
votes0
answers152
viewsQ: JSON error in PHP : Syntaxerror: JSON.parse!
I have a problem filling Google Maps with some markers, coming from a PHP (json). When I open the browser, error appears: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON…
-
1
votes0
answers26
viewsQ: Change between keyboard types (text - numbers)
Good night. I am developing an application (Cordova), that the user has to register an initial code with 2 (two) letters, 14 (fourteen) numbers and more 2 letters. I was able to make the input…
-
2
votes2
answers78
viewsQ: A single SQL query for a user’s products!
I have the following appointment: SELECT id_produto, produto, (SUM(credito) - SUM(debito)) as producao_total FROM produtos_farm PF INNER JOIN produtos P ON P.id = PF.id_produto WHERE PF.id_usuario =…
mysqlasked Guilherme Lirio 470 -
0
votes1
answer85
viewsQ: Check for changes in an html table
Good evening. I have a table that I pick up via Curl. It updates every 30 seconds, and displays in an html. This table has the status of a character in a game (live or dead). I wanted to know how to…
-
1
votes1
answer114
viewsQ: Create BD via PHP => Access Denied!
I’m trying to create a BD via PHP script, but is returning ACCESS DENIED. <?php $dbhost = 'localhost'; $dbuser = 'usuario_root'; $dbpass = 'senha_root'; $conn = new mysqli($dbhost, $dbuser,…
-
0
votes1
answer369
viewsQ: My login won’t catch $_SESSION
I have the following codes: Conn-login.php: <?php session_start(); header('Access-Control-Allow-Origin: *'); //Conexão MYSQLI - LOGIN GLOBAL $mysqli = new mysqli('localhost', 'login', 'senha',…
-
0
votes1
answer62
viewsQ: System in a single folder with multiple Bds
I’m finalizing an online system for patient management. The page (domain.com.br) has a login system. If I have 3 registered users, each would have to access their respective database. I wanted to…
-
0
votes0
answers48
viewsQ: Data +upload Images doubling in nodejs!
I’m starting now with Nodejs, and I’m testing an example that saves data along with an upload of images. It’s working, but the image is duplicated. I wish I knew where the mistake was and why: var…
-
1
votes2
answers76
viewsQ: PHP consultation repeating the medicine
To explain my case, I first need to explain how a medicine dispensation of the Popular Pharmacy works (the program of the Federal Government). I’m making a system for better dispensing organization…
phpasked Guilherme Lirio 470 -
6
votes4
answers2929
viewsQ: How do I capitalize the first letter?
I have the function, and it works perfectly: $.fn.capitalize = function() { function isTRChar(key) { var trchar = [231, 246, 252, 287, 305, 351]; for (var i = 0; i < trchar.length; i++) { if…
-
0
votes1
answer100
viewsQ: List 3 tables in a drug dispensation?
I’m making a system for my pharmacy: dispensing prescription-controlled drugs. I made the table patients (id, name, Cpf, telephone, address, photo_document), dispensation (id_patient, id_medicament,…
-
0
votes1
answer425
viewsQ: Result of a SELECT to use in another SELECT?
I know the title is a bit confusing, but I’ll explain it here: I have a select, which displays for me the stores that have a promotion (CONSULTATION 1): SELECT * FROM empresas INNER JOIN promocoes…
-
0
votes0
answers68
viewsQ: PHP does not display array data!
Friends, good night. In my code, I send the following: function cadastrar(){ var t = 0; var nome = $$("#nome").val(); var cpf = $$("#cpf").val(); var tel = $$("#telefone").val(); var end =…
-
0
votes2
answers56
viewsQ: How to get the contents of dynamic Ivs?
I have the following code, which is added dynamically: var m = 0; $$("#add_medicamento").click(function(){ m++; var medicamento = $$("#select_medicamento").val(); var qnt = $$("#quantidade").val();…
-
1
votes2
answers703
viewsQ: How to get the ID value of the i tag?
I have the following DIVS: <div id="img_btn2"><a href="#modal1" class="modal-trigger btn-flat"><i class="material-icons icone_branco">alarm</i></a></div> <div…
jqueryasked Guilherme Lirio 470 -
0
votes1
answer210
viewsQ: JSON return with error: Syntaxerror: Missing ; before statement
I have a problem with the JSON return, and I have already researched and I could not solve. I have the following requisition: var url =…
-
6
votes2
answers374
viewsQ: What’s the difference between SSE and Ajax?
I’m looking to update a div which contains a customer’s credits, so update in the Bank the amount of his credits and I am using the setInterval: setInterval(function(){ ver_creditos(); }, 60000);…
-
0
votes1
answer101
viewsQ: Inserting duplicate record in PHP while
I am deploying a system, where the customer, after buying an amount of credits, is inserted into his account in the database. But I’m having a credit duplication problem in my PHP script. <?php…
phpasked Guilherme Lirio 470 -
0
votes1
answer697
viewsQ: Subtract a sum value (SUM) from SQL?
Good afternoon! I have an SQL query, which searches and sums up the amount of credits a given user has: SELECT *, SUM(quantidade) as total_creditos FROM creditos INNER JOIN usuarios ON…
-
0
votes6
answers4771
viewsA: How to use Materialize side-Nav?
Why are using 2 ready(Function)?? Try to do so: <script> $(document).ready(function(){ $(".button-collapse").sideNav(); $('.parallax').parallax(); }); </script>…
-
1
votes1
answer335
viewsQ: Recover localStorage data in your particular input!
I have a code that dynamically registers input data in the localStorage. I am trying to recover the data registered in their respective inputs, but without success. This is the code to recover the…
-
3
votes2
answers1137
viewsQ: Phonegap does not open external site!
I’m starting with Phonegap, and I found a problem: my app would need to open a Facebook page. But I can’t get the Phonegap App to open a simple Globo.com page (example), but through the Desktop I…
-
0
votes0
answers267
viewsQ: Updating Google Maps bookmarks every 10 seconds!
Friends, I made a system to record the dots in the comic book and then display them on the map. It is working normally, but as I recorded in BD via ajax, the page is not updated! I’m doing it this…
-
0
votes0
answers389
viewsQ: How to send an image by Jquery, via $.POST?
My friends, good afternoon! I am creating a system where the person has to send an image to save in the database, but as I am making the request via Jquery, is giving the error message that I can…