Most voted "variables" questions
A variable is a named data storage location in memory. Using variables , a computer program can store text numbers, binary data, or a combination of any of these data types. They can be transferred in code, to other functions and even other applications.
Learn more…645 questions
Sort by count of
-
0
votes1
answer1130
viewsHow to show the value of a variable that is in another html page
The problem is this: I need to see some values that are updated every 3 seconds in a file that can be a .html, .csv, .txt or .css, any extension that can be seen in the notepad. Would look like this…
-
0
votes0
answers35
viewsNomenclature of variables and methods in c#
Hello folks today I noticed something curious in code snippet here at the company Behold : private void Cadastro_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(Acao) &&…
-
0
votes2
answers363
viewsCalling value from another page
Hi, guys. I’m having a little problem with passing data from one page to another. I’ve tried by Session and not quite sure and I’ll explain why: I have a news page that distributes them by a for in…
-
0
votes1
answer232
viewsVariable returns strange characters
I am using the CPU-Z that when scanning your pc you have the option to save the log in txt or html so that it can be viewed manually. Done this I exported to html and ran INSERT INTO…
-
0
votes2
answers110
viewsHow to take a value from a Javascript code and use it in PHP?
I want that when the width of the browser is between some values stipulated, my variable $colunas assume different values. I have the following code: <?php $largura = "<script type…
-
0
votes1
answer1283
viewsHow to put variable inside quotes in javascript?
I need to make this code work. But every time I put the variable in place or inside "" it doesn’t work. //jvectormap data var visitorsData = { "US": 398, //USA "SA": 400, //Saudi Arabia "CA": 1000,…
-
0
votes1
answer443
viewsHow to make a public routine for all forms without being tied to a form?
I have several forms in my application, and I can start the call by some of them running partial for testing (not necessarily START from the main form). In addition to the public variables that are…
-
0
votes1
answer68
viewsVariable error
I have tried to find a mistake that is happening to me and I could not, Error: Notice: Undefined variable: st in /var/www/html/questions/chk-manager.php on line 143 The line he’s pointing at is…
-
0
votes2
answers1011
viewsHow to Accumulate strings in a single variable?
I’m trying to retrieve attachment names in a single variable and then print them all together. Note that I already send each file to the upload folder. So this is not the case. I really just want to…
-
0
votes0
answers78
viewsJavascript button perform action in php
Hello. I have a question :/ I’m making an anime site, with posting and etc, at first I thought I could do everything in javascript, however, now I had to use php to access the Database and etc.…
-
0
votes1
answer367
viewsSave last value to variable and display
I’m having a problem in my program its function is to display on the screen how much ram memory the process is currently consuming and display the peak of memory usage, so my problem is when I close…
-
0
votes0
answers37
viewsassign rows in a column to different variables
Good afternoon, I’m beginner in php and wanted help with a code. I made a query that selects a column and limits 6 lines in descending order, the query worked all right, but I’m having difficulty to…
-
0
votes0
answers51
viewsHow to generate multiple buttons with the same variable and catch them separately
Hello, I’ll put the important part of the code here and then I’ll explain what I want to do. Main: public static JButton sala; public static int contagemTurmas = 0; botaoSalvar.addActionListener(new…
-
0
votes0
answers48
viewsWhat’s wrong with that code?
all right? I am a beginner in PHP and I am "side" in a simple code, in which I have seen numerous answers here in the forum, and I did exactly as it is in the answers (until CTRL+C CTRL+V) and it…
-
0
votes2
answers1283
viewsHow to exchange values of two variables without using a third one in php
My question is very objective. I need to exchange values of two variables without using a third one in php. NOTE: Using array/array is not an option. Researching I found a solution in linguagem c…
-
0
votes1
answer54
viewsA problem with variables in JS and PHP
I’m building a book registration system, it’s quite easy actually, it only involves a little bit of PHP and Mysql, but my problem is time to display. See, it’s a lot of information, so I wanted to…
-
0
votes2
answers241
viewsHow to switch the #(fence) symbol by the $(dollar sign) in the terminal after switching user
I’ll be direct, because the title denotes part of my curiosity about the linux console. Explain In some distros like - xPud and Basiclinux3 no "HOME" support is only "ROOT" and ready! In the distro…
-
0
votes2
answers2451
viewsSave the result of select in a variable and use this variable to fill the input that will then be used to do an UPDATE in the same table
I am trying to recover the data from a table inside an input where the user can be updated and save in the same table through UPDATE. I managed to do the UPDATE, but edit the data by input and send,…
-
0
votes1
answer1829
viewsVariable inside the WHERE of a select
I have a variable that changes your content according to some user actions! I intend to use this same variable within a select, as follows! " Select * FROM tabele WHERE '$variável' " But when I…
-
0
votes1
answer362
viewsRename posted fields into PHP variables
I have a form with dynamic fields. with inputs with Names like this: <input type="hidden" name="nome_prod1" value="Shampoo Hidratante Dazen Elegance"> <input data-theme="b" value="0"…
-
0
votes1
answer113
viewsExtract returns Undefined variable on the detail page
I am with the following variable indefinite error, I am developing a shopping cart using Friendly Url. Everything was going fine until I got to the part of returning all the contents of my product…
-
0
votes1
answer29
viewsAdd variables with date field equal if possible by editing date column
I have the following variables:: $v_data = $row['DATA']; $v_filial = $row['FILIAL']; $v_chapa = $row['CHAPA']; $v_func = $row['FUNCIONARIO']; $v_dias = $row['DIAS']; $v_desc = $row['DESCRICAO'];…
-
0
votes0
answers212
viewsHow to change environment variable path $HOME to another?
The intention is to load with you all "created or downloaded" files, and reassemble it in any Livecd distro, leaving it as the default directory. Note that, the essential in this logic of reasoning…
-
0
votes1
answer29
viewsReading variables from an object that was created in another
I’m creating an RPG and I found a problem: I can’t create monsters with levels. My code is like this: var xp = 0; function MonsterCriado(entidade){ Lvl = Math.floor(Math.random() * (11 - 1) + 1);…
-
0
votes0
answers33
viewsCan you turn a literal string into a variable?
I searched the web, but I didn’t see how to turn a simple string into a variable, I saw parse_str but it’s not quite what I need. I want the following, I have the string "userName 1", and I would…
-
0
votes2
answers169
viewsHow to make the variable appear on the screen before it is modified?
I am starting now to study programming and because of that I am using Visualg to be easier to get the programming logic. It turns out I’m trying to develop an algorithm that can guess a person’s…
-
0
votes1
answer469
viewsAssign value to a Boolean variable according to selected Radio Button
I’m trying to implement my application, where the table empresa won a new column called status, which would be completed in accordance with Radio Button this would serve so that when generating the…
-
0
votes2
answers126
viewsSwift Way to display variables
I’m finishing a small project to learn Swift but there is a small problem in joining more variables in the output. @IBOutlet weak var Nome: UITextField! @IBAction func CalcularIMC(_ sender:…
-
0
votes1
answer457
viewsPass variables in Jquery . css()
I’m having trouble with the following code: //Desktop = D var posicaoMenuD = $('#desktop-menu').position().top(); $(document).scroll(function(){//Alscutador de scroll da página var posicaoScrollD =…
-
0
votes1
answer1815
viewsStatic method has no access to class variable
Hello, I have the following problem: I have a static method that uses a class variable, but Unity gives me the following error: \Assets Scripts Gamecontrol.Cs(3,3): Error CS0120: An object reference…
-
0
votes1
answer150
viewssprintf does not give the expected result
I have variables of the type Unsigned Long Int and would like to save its value in a string, to perform calculation of checksum and send via serial communication. void Payload(int long unsigned…
-
0
votes1
answer40
viewsAndroid, Onitemclicklist with Listview variable
In this code I have a list that keeps updating and adds another line in listview, however, I need her position to be able to exclude her from the vector. It turns out that there is an error with the…
-
0
votes0
answers40
viewshow to force the download of a php file and delete it right away
I made a file with fopen(); and I need it to be downloaded on the user’s computer and deleted right away, and it is necessary that the file name is in a variable, because the file name will vary…
-
0
votes1
answer438
viewsHow to include a PHP variable inside a saved text in Mysql
I am trying to insert PHP variables inside a text that is saved in my Mysql, so that they are automatically read in my application. First, I will explain my reality: Printing page: <?php…
-
0
votes3
answers4049
viewsPass variable to another php file
I’m making a system where the user uploads a video and automatically already a page is created on the site with the video. I was able to upload and create the page, but I use an iframe to put the…
-
0
votes2
answers700
viewsTaking URL Variables from One Page, and using another
I have a link in which I receive the parameters in the url completely, in case it points to an HTML where I have my inputs, and I receive the URL with the parameters, what I need is to take the…
-
0
votes1
answer395
viewsSave the information of a variable in Codeigniter to the database
I’m getting a lot of product information from the Cosmos API and storing it in variables, but how do I save the information from these variables in the database? VIEW $curl = curl_init($url);…
-
0
votes2
answers249
viewsComparison of strpos() variables - PHP
I need some help between levels of access, I’ll post some of the code. It is a connection in AD (Active Diretory), authenticating the user and searching to which group he belongs. This is the login…
-
0
votes1
answer68
viewsHow to rewrite apache URL with variable and then use other variables in PHP?
Hello, I don’t know if the title of the question makes much sense, but the question is this:: I have that code: RewriteRule ^teste/([a-z]+)$ settings/php/teste.php?lib=$1 It creates a redirect, but…
-
0
votes2
answers68
viewsC - Problems with printing
Hello! So, I’m having problems with the variables "day" and "time". Although I make the required selection, the variable is not printed on the screen at the end of the program. I’ve made several…
-
0
votes2
answers202
viewsInteger reading via console
Good evening, folks. A basic question: In the code below class Conversora { double Oneknot = 1.852; // km/h public void Conversor(){ Console.WriteLine("Informe a velocidade em nós: " ); int speed =…
-
0
votes2
answers323
viewsExecute document and send variable value in PHP by Ajax
Hello, I have to develop a confirm button for deletion of a product. For this, I had the idea of running a file in php through ajax from the moment I click on "Confirm" in JS confirm, along, passing…
-
0
votes0
answers106
viewsPHP take the value of a select and input whenever these are changed and query MYSQL
I have an input field that is a date that changes according to the date chosen in the calendar and 2 selects that are start and end time: <input type="text" value="13-08-2017" name="pickdate">…
-
0
votes1
answer343
viewsDifficulty updating global variable. c
I am developing the following code and I am using global variables that can be changed in different parts of the code, but when I change for example the state variable in the menu() function its…
-
0
votes1
answer119
viewsDismember variable, taking part of the text
I have a multiple select that saves the following format in the database: 1-Azul,2-Verde,3-Vermelho,4-Preto,5-Branco Now I need to dismember this variable to show the result, but I need to remove…
-
0
votes1
answer43
viewsThis altering var global
I am making a change within the array of the object’s main function, but this is changing several values, including variable outside the object, which cannot happen. How can I fix this? var…
-
0
votes0
answers79
viewsHandle data between enumerated variables and "set of" in Delphi
I have two variables of different types, but dependent, one type being a set of of the other kind which is a Enumerated Types. How do I extract the value from the type variable set of (Y in my case…
-
0
votes1
answer719
viewsHow to put the value of a Php variable inside the Input in Html5
Good afternoon I need to make the value of the $x variable displayed inside the input item. below follows the code. thank you in advance. <!DOCTYPE html> <html> <head>…
-
0
votes3
answers687
viewsUpdate with PHP variable
I’m taking a beating with a variable update. Please someone can help me? $servidorBanco = "localhost"; $usuarioBanco = "root"; $senhaBanco = ""; $dadosBanco = "db"; $conexao = new…
-
0
votes2
answers1165
viewsVariable creation via Python user response
I would like to make the user insert a response from that answer would create a "variable" or not. I do not know if creating a new variable would be the best way, follow example: a =…