Posts by Ronda • 49 points
5 posts
-
0
votes3
answers645
viewsA: Format date coming from SQL SERVER Database
By default, the date is stored in the Mssql or mysql database in yyyy-mm-dd format, for example today: 2019-11-07. So I just use this very simple function: function dataBDFormatar(date){ var strData…
-
0
votes1
answer299
viewsQ: PHP dynamic variable name, according to another variable value
Imagine I have the code below: <?php $linha1 = 0; $linha2 = 0; $linha3 = 0; $linha4 = 0; $linha5 = 0; // Array com 5 numeros $cincoNumeros = [1, 2, 3, 4, 5]; for($i=0;$i<50;$i++) { // Misturo…
-
3
votes1
answer3793
viewsQ: Generate mathematical combinations with PHP array
GENERATE all possible combinations of 15 elements from an array of 17 items. This is a hypothetical situation. Should serve for any combination n per p. A total of 136 combinations. Using the…
-
-2
votes2
answers369
viewsA: Alignment of div within html
Dude, what you can do is create a function in javascript, for example, triggered by clicking a link, button, etc, that hides the first DIV and changes a CSS class of the second DIV, changing its…
-
1
votes0
answers180
viewsQ: JSON loads on localhost but not in production
I’m developing a website project that uses JSON files to feed dynamic data. In localhost, using XAMPP, the data is loaded but when I go up to a production server the page does not read the JSON…