A variable is a named data storage location in memory. Using variables, a computer program can store numbers, text, binary data, or a combination of any of these data types. They can be passed around in code, to other functions and even other applications.
0
votes
0answers
27 views
MySQL record wont update unless all inputs are filled out on the form
I've asked this before but none of the answer given worked so I'm asking again hoping to clarify the question. Also I AM WELL AWARE OF THE SQL INJECTION POSSIBILITES WITH THIS!
Here is my issue, My ...
3
votes
6answers
54 views
How to parse a variable having a dynamic name in PHP?
I do have variables like
<?php
$num1 = 'txt1';
$num2 = 'txt2';
$num3 = 'txt3';
...
and I do have a loop
for ($i=1; $i<100; $i++){
echo 'This is textNr'.$i.':' .$num.$i ;
}
I ...
0
votes
2answers
22 views
Global variables to pass between functions in jquery
New to jquery, I'm trying to pass a variable from one function to another, googling has told me I need to make it global but I'm not having much luck! Help!
$(document).ready(function() {
var ...
-3
votes
2answers
30 views
PHP & MySQL: variable emptying when put inside mysql_query() [closed]
I've been having an awful problem all day today...
I have to simply insert a row in the database, and I have tested all variables individually.
They all work fine but, as soon as I assemble the query ...
0
votes
1answer
10 views
jQuery assign event handler with timeouts per element
Interesting one for me. I've got a video player whos controls are showed on hover. Initially, I did this with CSS but had to change strategy to javascript to play nice with browsers fullscreen api ...
0
votes
1answer
16 views
How to set text of a dynamic created CheckBox from a user defined variable
I have this code:
package com.app.BoomBase;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
...
0
votes
1answer
19 views
Declare a variable as Control
I am using Visual Studio 2008.
I want to have a DataGrid which is not found in the toolbox.
So I added reference to WPFToolKit.
Now I got a control named DataGrid in the toolbox.
After that I want ...
0
votes
1answer
12 views
Passing variable from class to class and store the variable Actionscript 3.0
I want to transfer the variables score from GameScreen.as to GameOverScreen.as.
The method from GameOverScreen.as is called getScore(score:Number), that doesn't update the finalScore from the ...
0
votes
2answers
16 views
Local Decleration Hides Instance Variable - setting up ViewNavigation Controller
I am converting a simple app which was only a TabViewContoller to one where I need to push multiple views via Navagation controllers. The following Code:
- (BOOL)application:(UIApplication ...
0
votes
7answers
55 views
Common practice for variables with similar names in constructor parameter and as a property
Is there a "correct" way to name a variable when it is being passed in a constructor to a property? Example (in c#):
public class MyClass
{
private int index;
public MyClass(int i)
{
...
0
votes
4answers
35 views
Login with session variables undefined
I will try and explain my situation as best as i can, ive had a look at a few questions on here, but none seem to answer my problem.
Ive created a website using my own custom MVC framework, which ...
-5
votes
0answers
62 views
Java variable resets when i call the class [closed]
I am currently developing a text based game which is based around the concept of Game Dev Tycoon essentially you make games and manage a company.
I am currently coding the bank and it seems that the ...
0
votes
2answers
40 views
php - shifting variable value by if else simplification
I'm trying to make something like this to my variable data value...
$maxvalue = 0;
$basevalue = 0;
if($basevalue == 0) {$maxvalue = 0;}
else if ($basevalue == 1) {$maxvalue = 884;}
else if ...
1
vote
1answer
16 views
Mathematica- Solve when given random variables and set equations
I'm trying to figure out if there's a way in mathematica where I can solve for particular variables when given other variables and a set of equations. Essentially there are 6 variables, and I'm given ...
1
vote
1answer
31 views
Is assigning variable with Scope Resolution Operator(::) same as $this->variable?
Just curious.
if I assign self::$session = $reg->get('session'); in a __construct class, can the variable be used as the class' properties just like $this->session = $reg->get('session');?
...