Posts by Márcio Teixeira • 343 points
13 posts
-
2
votes4
answers6441
viewsQ: Format Real value (br) to decimal (10.2) mysql
Good afternoon, you guys! How to format Real value (br) to mysql Numeric(10.2) using php number_format? I tried to use: $num="89,90"; ou $num="1.089,90"; number_format($num, 2, '.', ''); But this…
-
0
votes0
answers109
viewsQ: List of all Material Icons
Good morning, you guys! I am creating a form with SELECT where OPTION is Material Icons: <option data-icon="case" value="case">case</option> <option data-icon="favorite"…
-
0
votes2
answers761
viewsQ: Check the existence of a file
I need to verify the existence of an image coming in one of the positions of a JSON received via AJAX. Did you understand? Is there any function equivalent to file_exists() PHP in Javascript or…
-
0
votes1
answer159
viewsQ: Work with multiple or single database (Mysql)
Hello, Guys! A company hired me to unify (and remake) several systems they own. The job is to create single administrative panel for various sectors and products. When thinking about data storage, I…
-
2
votes1
answer2816
viewsQ: Using reCAPTCHA with jQuery (ajax) and PHP
Hello, Guys! It’s been 4 days since I programmed using jQuery :) I made a form using ajax and PHP, worked perfectly! But... the need to implement reCAPTCHA has arisen. I don’t know where to start, I…
-
6
votes2
answers978
viewsQ: Check if user name is unique in real time
Hey there, you guys! Currently, to check if a username is unique, I do it in the most basic way. Sending the POST to a PHP page that checks in Mysql, only then returns the error. php.: <form…
-
2
votes3
answers266
viewsQ: Send what is being typed from one input to another in real time
Hey, you guys! I don’t understand Jquery or javascript, only PHP. I am struggling to create an INPUT 1, which in real time, sends what is being typed to an INPUT 2, without spaces or special…
-
1
votes1
answer51
viewsQ: Capture Script Opening Time
Hello, everybody. I am trying to create a project, whose function is to identify the time the page is open (eg if it was 1 or 2 minutes open). When closed, save time information in the database.…
-
5
votes2
answers16197
viewsQ: How to print a javascript variable inside an html tag?
How to print a javascript variable inside an html tag? <script> (function() { var PORCENTAGEM = '25%'; })(); </script> <div class="progress progress-striped active"> <div…
-
2
votes2
answers4163
viewsQ: How to change between texts according to time?
How do I alternate text with a set time on a div? I don’t know command in jQuery, I tried the code below but it doesn’t work. <!DOCTYPE html> <html> <head> </head>…
-
0
votes0
answers64
viewsQ: Run php on click, with jQuery
I’m trying to do a function with jQuery (I saw it once in jQuery), where when clicking on a link, runs a php page in the background. Note: I am not good with jQuery. <!DOCTYPE html>…
-
1
votes2
answers919
viewsA: Separate time and search between dd/mm/yyyy dates
Try it like this: SELECT date_format(data_criado, '%d/%m/%Y') FROM contrato WHERE (2014-04-22 >= data_ini) AND (2014-04-22 <= data_fim); Or you can replace the date with "NOW()", which is the…
-
8
votes1
answer11801
viewsQ: Has anyone managed to use jQuery File Upload yet?
I refer to this link http://blueimp.github.io/jQuery-File-Upload/. The documentation is very vague. I have already changed the "action" of the "form" but without success. Form Html5: <form…