Posts by jsnow • 160 points
6 posts
-
1
votes0
answers242
viewsQ: Google Maps autocomplete does not show address
I’m trying to get my Google Maps autocomplete to show the address in the formed "City - State, Country" however, is returning this: In short, it only returns with the city, but you can’t tell where…
-
1
votes1
answer229
viewsA: Presence list php and Pdo
Try it like this: <?php require_once("../cfg/db.php"); $db=get_db(); $nome = $_SESSION['nome']; $stmt = $db-> prepare("SELECT lider, nome FROM membros WHERE lider = '$nome' ORDER BY nome");…
-
4
votes3
answers324
viewsQ: How can I take each selected checkbox and put it inside an input?
I have some checkbox and I want, when clicking a button, all the names of these selected, to go to an input separated by ",". I tried to do it this way, but it didn’t work: <input type="checkbox"…
javascriptasked jsnow 160 -
2
votes0
answers36
viewsQ: Change background according to frequency
I am trying to make a table that receives the numbers coming from an SQL query and according to the frequency of each of them, change the background. An example (taken from an Internet site): I get…
-
0
votes1
answer136
viewsQ: Count how many times each element appeared with another in an array
I have these arrays as reference: $a_controle = array ('A','B','C','D','E','F'); var_dump($array_final) => array (size=5) 0 => array (size=3) 0 => string 'A' (length=1) 1 => string 'B'…
-
6
votes1
answer498
viewsQ: Doubt in the code in probability calculation
I’m making a calculator to estimate the probability of lottery hits. I’m using this formula: Being: to is the number of tens of the steering wheel (at Mega-sena, a = 60) b is the number of dozens…