Posts by Jerfeson Guerreiro • 254 points
12 posts
-
2
votes4
answers6441
viewsA: Format Real value (br) to decimal (10.2) mysql
I like to do it this way; This first method removes all special characters from your string. /** * @param $str * * @return null|string|string[] */ public static function onlyNumbers($str) { $str =…
-
1
votes3
answers137
viewsA: Help with Append()
sort of like this $(document).ready(function(){ $("button").click(function(){ $("#card").append('<li><a href="#">Novo Item</a></li>'); }); }); <!DOCTYPE html> <html…
-
0
votes2
answers40
viewsA: Insert mysql database
Probably it will fill the variable at another time, this time can be a form sent via post or via get, can be hard-code as I did below, you can test the functioning on the site :…
-
0
votes3
answers1107
viewsA: Add +1 every time you click the button?
Via jQuery: https://jsfiddle.net/jxved9o6/ $(document).ready(function() { var count = 0; var badge = $('#carrinhoIndex'); badge.text(count); $(document).on('click', '#buttonAdd', function(e){…
accountantanswered Jerfeson Guerreiro 254 -
4
votes2
answers59
viewsA: placeholder with the same label name
You can do this via Jquery, it would look something like this. Functional example: https://jsfiddle.net/fj3x7sgq/1/ <label for="sing_pass" class="label_pass"> <span class="lang" key…
-
2
votes1
answer6560
viewsA: Localstorage + PHP
1º in the $.POST('index.php', ... missing close parentese, this generates a javascript syntax error, and your ajax will not run. 2º your ajax runs, you are assigning a value to variable church and…
-
-1
votes2
answers139
viewsA: Problem with Ajax and php
I took the liberty of tweaking the code a little bit <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <script…
-
0
votes3
answers1897
viewsA: Problem consuming Datasus webservice in PHP
unfortunately I have no privileges to comment, I tried some things here to try to help you, but it seems to me that the problem is in the xml of web service response. I rewrote the code a little…
-
1
votes2
answers295
viewsA: Migrate PHP function from mcrypt to Openssl
Unfortunately, you will need to re-encrypt all your data and actually since PHP 7.1.0, mcrypt_decrypt and mcrypt_encrypt are deprecated, so to solve your problem you need to use openssl_encrypt and…
-
-1
votes2
answers4924
viewsA: How do I use HTML or CSS in Android Studio?
The android studio is focused on the development of native applications, to use HTML and CSS suggest the use of CORDOVA, for the development of hybrid applications, a suggestion also instead of…
-
1
votes1
answer1010
viewsA: Android Studio does not open new project (stay transpatente)
I’ve had a similar problem, I could only solve by formatting the machine, not even getting a beta version of AS solved. I recommend doing this. of the least headache. (This problem happened to me…
-
3
votes1
answer77
viewsQ: Media queries ignored from a certain resolution
Working with Mediaqueries for responsive layout, I came across the following problem: I’m setting the resolutions quietly, but when I get to 800px the configuration gives 320px and 360px. It is…