Posts by Willian Liell • 57 points
5 posts
-
0
votes2
answers719
viewsQ: How do you put this in the ascending order?
<?php $var = 5; for ($i = 0; $i <= $var-1; $i++) { $new_data = array($i => $count[$i]["rank"]); foreach ($new_data as $i => $key) { print(var_export($key).","); } } ?> he returns it:…
-
0
votes0
answers363
viewsQ: About foreach array while loop for...to leave results in alphabetical order
<? $n = 0; $limite = 10; while ($n <= $limite-1){ $dates = array($user["members"][$n]["rank"]); foreach ($dates as $value){ echo $value; } $n++; } ?> it returns the following value: 87 41…
-
-4
votes2
answers79
viewsQ: Question about array in php
I’m cracking my head and I’m already out of ideas, summing up my code is like this: <?php $var = 'arquivo_1'; // podendo ser arquivo_1 ou arquivo_2 $arquivo_1 = array( "algo1" => "alguem1",…
-
1
votes1
answer1031
viewsA: how to pick up a value and post it on a modal?
Solved, It works perfectly: <script src="js/jquery.min.js"></script> <script> var variavel=''; function setval(varval){ variavel=varval; event.preventDefault();…
-
3
votes1
answer1031
viewsQ: how to pick up a value and post it on a modal?
my html is like this: <a href="#modal" data-toggle="modal" data-id="login">logar</a> i need a php or javascript that does a post or onclick that sends the value "data-id='login'" to a…