Posts by Alex Lupóz • 177 points
13 posts
-
1
votes1
answer367
viewsQ: Get the name of the respective PHP table in SELECT UNION
Hello, everybody all right? Does anyone know how to get the name of the respective table of the pulled value? I have the following code: $query= " SELECT DISTINCT titulo, categoria, views FROM (…
-
1
votes2
answers126
viewsA: I want to search by name of any function from a search field
Well, if you’re not going to use for some system that requires several saved names (it wouldn’t be anything semantic to create 30 hehehe subfunctions), here it is: //funções filhas function…
-
3
votes2
answers1148
viewsA: Block user access with foreign IP’s
Well, I had the same problem a while ago, but I managed to join the solution of an API with some own solutions in PHP, nothing extraordinary, after all, it is the API that does everything…
-
0
votes2
answers336
viewsA: Javascript - Scoring
Use innerHTML instead of Document.write, in this case, rewrite the entire document, so it goes. Thus: document.getElementById('pontos').innerHTML = 'Pontos: ' + pontos; As for staying on the green…
javascriptanswered Alex Lupóz 177 -
-1
votes1
answer40
viewsA: Pass an id to another page via a foreach
Just you save in the Session: pag_listar_called.php $_SESSION['id_contrato'] = $chamado['id_contrato']; On the other page, you can use it normally: pag_verifies.php $idContrato =…
phpanswered Alex Lupóz 177 -
0
votes1
answer265
viewsQ: Separate respective item from a JSON array
all right? I wonder how do I add the respective value in "href" in this foreach: <?php $getJson = file_get_contents('file.json'); $listMenuJson = json_decode($getJson, true); foreach…
-
1
votes1
answer66
viewsQ: Change "createTextNode" to insert into HTML?
all right? I’m having a certain doubt, because I’m trying to create a very simple Bbcode system, but for visual reasons, I’m not using a textarea normal. I’m using a div with the attribute Editable…
javascriptasked Alex Lupóz 177 -
0
votes2
answers1260
viewsA: Capture Json (Array) data and put into HTML
Look, I don’t know if I understand this correctly, if I’ve misinterpreted it, forgive me, but from the looks of it, what you’re looking for is a system like "autocomplete"? I used the library…
javascriptanswered Alex Lupóz 177 -
0
votes1
answer97
viewsA: Help positioning icone/view under image
As the friend above said, with "position: Absolute" you can assemble this effect. .container { position: relative; border: 1px solid #aaa; width: 230px; background: #f2f2f2; } .container h2 {…
-
0
votes2
answers189
viewsQ: Is dynamic HTML via BD bad practice in PHP?
I’m creating a platform where I need to change elements of the site by a control panel, and for example, it would be something very bad way insert into BD and pull via PHP? Let’s say I have a menu…
-
1
votes1
answer810
viewsA: Bootstrap 4 dropdown(toogler) not working
The error is here: <button type="button" class="navbar-toggler" data- toggle="collapse" data-target="#navbarSite"> You gave a line break in the middle of the tag attributes, more specifically,…
-
0
votes1
answer57
viewsQ: How to place a value of a var inside an array item?
I’m touching the Google Charts, but I came across a situation, and I was wondering if you could do something like in the example: var numero = 45; var data = google.visualization.arrayToDataTable([…
-
1
votes1
answer466
viewsQ: How to put PHP variable with lower and higher value (min and max)
Hello, everybody! I wonder if there is the possibility of making a variable in PHP with a min and max numeral, for example: $var = /a numeral greater than or equal to 10 OR a numeral less than or…
phpasked Alex Lupóz 177