Questions tagged as 'variables'

2
answers

Problems with receiving variable get [closed]

I have this simple error, but I can not tell what I'm doing wrong Undefined index: activity_id $id = $_GET['id_actividad']; $sql = "SELECT * FROM actividad WHERE id_actividad = '$id'"; $resul1= mysqli_query($conexion,$sql);...
asked by 05.06.2018 / 07:49
2
answers

Call MainActivity variable to a service class in Android Studio

I have an application that gets the user's location, now I need to send those values (latitude, longitude) when launching a service .. //Variables donde se guardan las coordenadas Double lati = new Double(0); Double longi = new Double(0); //V...
asked by 17.05.2018 / 06:54
2
answers

pass value from a java class to a jsp

I would like to know how I can pass the value of a variable from a java class to a jsp. public void ValidateUser (String user, String password, HttpServletRequest request) { try { Connection conexion=null; PreparedStatem...
asked by 21.05.2018 / 13:43
1
answer

PHP do a search and extract in another variable

Good I am trying to do one thing, I explain myself: Of a variable type text with several lines I want to extract in another variable the line that contains something I've tried it in the following way: $reporte strrpos(substr('$TextoGrande'...
asked by 07.05.2018 / 16:50
1
answer

Replace the use of "var" when creating a variable in C # 2.0

Good my query is this: var items = new Normaslist(); try { conn.Open(); //using (var dr = cmd.ExecuteReader()) using (SqlDataReader dr = cmd.ExecuteReader()) { in the code shown I define a variable...
asked by 02.03.2018 / 19:47
1
answer

Incremental variables to add

The thing is that I need the variable% co_of% which is where the total price of each product line is stored, something like $precioinicial , $precioinicial1 , for later where I put the total without VAT , make the sum of these varia...
asked by 31.12.2017 / 17:20
1
answer

C deletes the value of the variable when it is passed as a parameter of a method

I'm doing a program in C language, the problem is that I have a variable of type int and when I pass it as a parameter, C deletes it from me. char letra, name[] = ""; int compuesto; compuesto = Es_Compuesto(nom, lon);//RETORNA UN INT if (compu...
asked by 13.12.2017 / 21:58
1
answer

How to create in JS a variable equivalent to a static variable in PHP?

function cambiarPropiedades(elemento){ if(typeof control === "undefined"){ control = true; //No puedo usar el operador var } if(control == true){ //Código a ejecutar control = false;...
asked by 26.11.2017 / 13:44
1
answer

Problem with the use of variables

I have a question, maybe it's silly but I've been trying several ways and nothing else I can not. I want to use the variable lo in the send method to another activity but it does not leave me, it is assumed that in onLocationChanged...
asked by 15.08.2017 / 07:24
1
answer

Variable that never expires

I have developed a page in which the name of the user will be entered once, never again will be returned to this page. On the next page you get information between her the name that was entered on the first page and then stored in a database....
asked by 25.07.2017 / 20:35