All Questions

2
answers

Make a reference variable point to another variable

I have the following question, for example: int a = 5; int b = 10; int & r = a; How do I make the reference variable r point to b and not more to a ? Is it possible to do this?     
asked on 08.09.2015 / 00:22
2
answers

Do I need to include jQuery on all pages?

Is it necessary to put the script of the production jQuery each time it starts a new encoding?     
asked on 06.04.2015 / 04:47
2
answers

How to create a trigger in MySQL?

I have tables usuarios , usuario_voto , and classificacao_usuario . Usuarios: system user table. usuario_voto: table that stores vote from one user to another. classificacao_usuario: table that sto...
asked on 22.04.2015 / 08:34
1
answer

What exactly is the element.class selector?

I was developing and one thing caught my attention: the elemento .classe rule is different from elemento.classe . I noticed that the main difference is that the first could be read like this: "Element that has a child with class...
asked on 11.04.2015 / 22:06
3
answers

get element after being inserted into the DOM with jQuery Append

My page has a selectbox, with some segments, when a user selects a segment, through the on change event of jQuery, it takes the value of the selected <option> and inserts an input hidden with the value of this option within a...
asked on 15.05.2015 / 21:18
1
answer

JavaScript: how to count the characters of an html text?

The problem: I have a html formatted text and I need to count how many characters (ringtones for journalists) I have. I'll use JavaScript. Some solutions came to mind, but as this will be done repetitively, I decided to analyze better before lea...
asked on 09.03.2015 / 15:22
3
answers

How to create an array inside another array with jQuery

I'm trying to create a array in jQuery using the .push () function where each element should contain another array inside it. The framework I need to create is this: array( 'elemento1' => array( 'elemento1...
asked on 15.05.2015 / 20:22
2
answers

Warning: mysqli_fetch_assoc () expects parameter 1 to be mysqli_result, boolean given in [duplicate]

I have a simple problem when picking up a data from a table .. The error is    Warning: mysqli_fetch_assoc () expects parameter 1 to be mysqli_result,   boolean given in Code: $sql = mysqli_query($conexao, "SELECT diasvip FROM logi...
asked on 07.03.2015 / 14:48
3
answers

How to sum list values in tuples?

I have for example a list with tuples, and within these tuples I have 2 lists, where only the second list of each tuple varies: x= [(y, [1, 2]), (y, [3,4]), (y, [5, 6])] How do I add the first values of lists within the tuples, like t...
asked on 17.04.2015 / 16:13
2
answers

Discover from which table the data is in a union

Hello, I have a php system, using codeigniter, and it runs the following command: $data['dados_tabelas'] = Tabela1::find_by_sql('SELECT * FROM tabela1) UNION (Select * from tabela2)'); More or less. I wanted to know if I have to find out wha...
asked on 18.06.2015 / 20:52