Questions tagged as 'variables'

2
answers

Call to dynamic Javascript variable

How about. My question is this: I create a variable in javascript within an each: window["opcion" + v.id] = {var1: 1, var2: 2}; If I want to access it within it each, how should I refer to it? It could be like this: "opcion"+v.id...
asked by 15.12.2017 / 15:37
1
answer

Variable Out, Error

Hi, I want to create a variable OUT that I will use later, but the following error appears when creating the block: DECLARE @COD_PERI INT, @COD_ESTA_LOG INT OUT BEGIN SET @COD_ESTA_LOG = 5 END    Mens. 102, Level 15, State 1,...
asked by 29.03.2017 / 16:34
1
answer

How can I access the attributes of this object in javascript?

I am rendering configurations in an app, so from ajax I get this object. When I try to read it I can not because I do not know what the syntax is for doing it. res.data.0-MenuComponent res.data.'0-MenuComponent' try with those two...
asked by 27.09.2018 / 23:40
1
answer

Is it possible to declare local variables within a lambda?

I have a lambda function (arrow or anonymous function) in JavaScript , which declares a variable, but the problem is that it declares it as a global variable, and I I would like it to be local (only accessible within lambda). (x=>(...
asked by 21.03.2018 / 03:32
2
answers

How to pass a javascript variable to an external php

I have a javascript function in which I get a variable that I need to use in a different php file and I do not know how to do it. I show you the code of the files, thanks in advance. JavaScript file (test1.html) function boton() { var...
asked by 20.04.2018 / 17:07
1
answer

How do I create a dispersion chart with PHP? [closed]

I'm trying to create a table or scatter chart that shows the number of successful and failed logueos of a PHP form but after a lot of searching I did not find a tutorial or something to guide me. This is an example of what I'm looking for link...
asked by 04.10.2017 / 07:56
1
answer

Error compiling program in C ++

This is my program. I am using CodeBlocks. The errors that it shows me are the following: 26 - expected primary-expression before 'int'. 26 - expected ']' before 'int'. 26 - expected ')' before 'int'. 26 - expected initializer before '...
asked by 01.06.2016 / 10:41
3
answers

get the user name to show it once the session starts with php mysql html

I have a question with this code is that it does not show me the name of the user, in itself what I ask is how you can show the name of the user who started the session, and who appears in the corner of the website thanks to beforehand note:...
asked by 08.12.2018 / 21:17
1
answer

Split into special characters like '\' in java [duplicate]

Hello, I would like to know how I make a split to special characters. What I'm trying to do is take away the \ these numbers. String octa = "454246"; String[] prueba = octa.split("\"); for (int i = 0; i < prueba.length; i++) {...
asked by 08.01.2018 / 22:25
2
answers

Solution to PHP Notice: Undefined variable: db

This is the code: function getCategoryTree($level = 0, $prefix = '') { //$sqll = "SELECT * FROM expense_categories WHERE master_category = ".$level." GROUP BY category_id ORDER BY category ASC"; echo $db."<br/><br/>\n"; $...
asked by 30.03.2017 / 21:09