Posts by Ademílson F. Tonato • 328 points
14 posts
-
1
votes3
answers2287
viewsA: Remove created image-div spacing
You can solve this by adding a height to the PAI div (.box-img) .box-img { width: 100%; max-width: 200px; height: 200px; background-color: blue; } img { width: 100%; height: 100%; }…
-
0
votes3
answers471
viewsA: Does the CSS "! Important" property influence website performance?
It’s possible, since your site will load the CSS, and how much you’re reading it (will read more rules) that are being superimposed by others you use ! Important. Think CSS is cascading, that is if…
cssanswered Ademílson F. Tonato 328 -
0
votes1
answer23
viewsA: Help with job creation agenda query
SELECT * FROM agendamento WHERE 1 =1 AND ( (mes = MONTH(NOW()) OR (mes = '*') ) AND ( (dia = DAY(NOW()) OR (dia = '*') ) I believe this is the path that will be necessary to tread, although I think…
-
1
votes1
answer242
viewsA: How to consume data from the Restful API?
If you have the service running that returns the data, you need to consume it somehow, you can do it through the language you are using (PHP) or via Javascript (making ajax requests) for example.…
-
1
votes1
answer86
viewsA: Changing the background of a Section
Certainly if you use JS for this, you will have a much simpler control, however I made an example only with CSS too. Example with JS - https://jsfiddle.net/L3cwo8/ Example with CSS -…
-
2
votes1
answer387
viewsA: Doubts on how to Validate CNPJ with Jqyery
I added the event to 'onBlur', which is when the field loses focus, that is when you click on any other screen field than the CNPJ input. If you add the event in the 'click/Focus' of the field, it…
-
1
votes3
answers6319
viewsA: Passing a PHP variable to a Bootstrap modal
If you have already populated the table, you can add an identifier p/ each row and when you click you take the data of this line and show in Modal. If you need information that is not on the line ,…
-
-2
votes2
answers59
viewsA: While does not validate last php array
I think it would be better if you did it that way, because repeat the <form> for each record is not a good practice. <?php while($dados_tabela = $consulta_tabela -> fetchObject()) {…
-
-5
votes3
answers1771
viewsA: What is the purpose of the magical __clone method?
After cloning is completed, if a __clone() method is defined, the newly created object will have its __clone() method called, allowing any property to be changed.…
-
2
votes1
answer81
viewsA: View recent products registered with php in thumbnails
The Mysql has a function called NOW() it returns the current date in the following format: '2016-06-30 10:27:34', you can save this value in the database in a column called data_cadastre, for…
-
0
votes1
answer78
viewsA: Problem with donation registration
I don’t know if I fully understood your doubt: When logged in as Donor, the system should list only itself in the donor list. When logged in with any other donor not, for example Administrator, then…
-
-1
votes3
answers347
viewsA: Favorite facebook style button
Following Andrew’s line of reasoning, I’ve added some of the best practices. I created this practical example, http://jsfiddle.net/2c6ok23e/4/ and hope to have helped. Hug…
-
6
votes1
answer70
viewsA: calculation between two defined dates
<?php function dateDiff($firstDate, $lastDate) { $firstDate = new DateTime($firstDate); $lastDate = new DateTime($lastDate); $intervalo = $firstDate->diff($lastDate); print "{$intervalo->y}…
phpanswered Ademílson F. Tonato 328 -
2
votes1
answer546
viewsA: Passing javascript variable to php or direct to a field
I’m not sure of your question, but if you want to pass the value of a JS variable to PHP you can use AJAX. AJAX without jQuery: http://youmightnotneedjquery.com/#post About passing the value to a…