Posts by Navegador • 23 points
6 posts
-
-1
votes1
answer25
viewsQ: Create a function full of elements and that returns two values in php
How can I do a function with this code, since I will have to repeat it several times and the only things that change are the variables $a and $b. I need to use in my html the return of the two…
-
-1
votes1
answer107
viewsQ: Send two parameters at once via ajax
I am sending an information with ajax, but I would like to send two at once. It would be possible to adapt the code below for this ? <select name="sex" class="" required> <option…
-
-2
votes1
answer50
viewsQ: All data of a query in an array
I need all the data from a select to be in an array format. All the ways I’ve tried return only the last data from the table. How should I proceed ? $sql = "SELECT * FROM Termos"; $result =…
-
0
votes1
answer58
views -
-3
votes1
answer58
views -
2
votes2
answers47
viewsQ: Value of div being sent dynamically to php page
I have a simple game that ultimately generates a score. The score appears this way: <div id='cScore'>0</div></div> I would like at the moment that this div is called that this…