Posts by riki481 • 237 points
23 posts
-
0
votes1
answer234
viewsQ: Data registration in a dynamic array returning Eaccesviolation
I’m trying to create a Delphi database to register and save to a 3 basic variables dynamic array. To do this, I created a global dynamic array named Pedidos, one Record Tpedidoitem with id, name and…
-
0
votes2
answers83
viewsA: PHP upload files to multiple directories
I think the problem lies in this following excerpt: for ($m=11; $m <= 12; $m++) { $targetDir = "../".$a."/".$m."/"; echo "segundo<br>"; This error has already happened to me several times…
-
-1
votes2
answers555
viewsA: Ionic doesn’t recognize my css
From what I know about ionic, he uses from a file .css own, which superimposes others when compiling the code. If you find it and try to delete it maybe the program will recognize the codes the way…
-
0
votes3
answers132
viewsA: Choose Modal from variable
I worked little with ASP.NET, but it should be something similar to what you typed. As far as I know, to get a model variable, you should use @Model."Nome do Model"."Nome da variável"; But without…
-
-4
votes1
answer85
viewsQ: How to create an application in Vue?
I am trying to follow the instructions of this site to create an application in Vue: Link The problem is that I don’t understand what it needs me to do first. Should I download the file from github?…
-
0
votes2
answers63
viewsA: How do I show the already used and wrong letters in the hangman game? and leave the word on the bar in maiscula?
I don’t know this language, but you could make a variable string that would add the values and display on the screen, like the example: if word=="" listadeletras += word if word!="" listadeletras +=…
-
0
votes2
answers110
viewsA: C# override autocomplete does not work
Probably a visual studio plug-in is missing to identify the language and autocomplete. If you’ve already installed a plug in, you may need to write a specific plug in command to make it work. EX: if…
-
0
votes1
answer102
viewsQ: Work with two different filters in the same location
I’m making some basic algorithms with php, and so of curiosity I decided to make an html with a form, input text and a button to send. in PHP.If the variable I put in input text is equal to 1, php…
-
1
votes2
answers40
viewsA: Print more than one value with json
Try to do so: document.getElementById("demo").innerHTML = obj.name,obj.age,obj.city; I only used JSON with C#, so I think the logic is similar
-
-1
votes2
answers587
viewsA: How do I check that my file type input is empty in PHP?
Try it like this: <form action="teste1.php" method="post" enctype="multipart/form-data"> <input type="text" name="title"> <input type="file" name="arquivos" multiple> <?php…
-
1
votes3
answers1207
viewsA: Pick selected radio button value and start IF, ELSE IF, ELSE
You can use a document.getElementById to take the value of the three, remove the value of the inputs and then do the following: //botão para enviar o valor do radio <input type="submit"…
-
0
votes2
answers166
viewsQ: Function does not change the variable
I’m learning to use functions in php. I created this html, which will get 3 information, Name, race and player class: <html> <head><font face="Arial"> <input type="hidden"…
-
-1
votes1
answer53
viewsQ: Create an algorithm that removes and adds an item
I’m working on a complex code, so I’m just gonna pass on the necessary. Basically I’m trying to create an algorithm in php that simulates a video game inventory, where we can equip items in the…
-
1
votes3
answers541
viewsA: Hide and Show child element via checkbox
You can use, within the input, a onclick. Onclick is a command that is executed by clicking on something (such as Divs and inputs). you can use something like: <div id="item1"> <input…
-
2
votes2
answers112
viewsQ: Create an "inventory" in php
I’m trying to create a kind of inventory in php. basically a program that by placing a certain number on the screen, it takes you to the inventory, where you can pick up and remove items.I’m trying…
-
1
votes1
answer81
viewsQ: Position tables with commands in php
I’m doing a program that creates variables, and shows them in two tables with a echo. Together in that echo, i put a table with a style inside. However, when testing the code, the formatting does…
-
0
votes0
answers39
viewsQ: Save variables from a select and keep the value in php
I am creating a php game where you will have several and several decisions to make. The problem is that the way I made it work was by separating the decision command, putting it on the last line…
-
-1
votes1
answer36
views -
0
votes3
answers433
viewsA: Take the JSON return and move to a PHP variable
PHP and Javascript can’t communicate, so I suggest you try making one innerHTML with the variable within a input and then use $_GET or $_POST to pull you into PHP. <script…
-
1
votes1
answer194
viewsQ: Variable errors at the beginning of PHP
Good morning, everyone. With the help of the user Luan Peil I managed to make my algorithm a simulator of an RPG fight. The problem is that when starting, it reports many variable errors…
-
0
votes1
answer55
viewsQ: Variable repetition problem in PHP
I’m playing a little game where you simulate turn-based role-playing. I created two variables for the life of the player and the enemy, and then created two variables for their actions (if you fall…
-
-1
votes1
answer88
viewsA: How to select an option from an input select with the value of $_GET with Jquery
I suggest switching between double quotes and single quotes, so it will read the variable as a whole: var theValue = "<?php echo $_GET['pesquisa-tipo']; ?>"; Another solution I would have,…
-
1
votes3
answers1067
viewsA: Enter a number and display the next 100 even numbers
To display 100 next even numbers, I would do something like this: $numero = $_GET['numero']; $inicio = 0; $fim = 100; while ($inicio<= $fim) { if ($numero % 2 == 0) { echo "$numero "; $inicio++ }…