All Questions

3
answers

Equivalent to LIKE in PHP

How do I compare two strings in PHP in the same way as LIKE in mysql. For example: "PARA" would be equal to "PARALLEL", "PARALLAX", "PARALLELEPIPEDO", "PARAMETER" ... because it has the same start. But regardless of form, I would like...
asked on 19.11.2015 / 18:33
1
answer

How to use Angular UI Router? and what are the advantages?

How to use Angular UI Router? and what are the advantages? What long-term advantages of using it and not the standard of angularjs?     
asked on 19.08.2014 / 03:41
4
answers

How to remove untracked files from my current branch in Git?

How to remove these files from my current branch in Git?     
asked on 05.05.2015 / 19:56
5
answers

How can I add a value to a row in bd without having to add variables?

Well my question is like this: I have the row balance of a given user of my database table that has 100 €, and I wanted to add + 50 €, as I can do without having to create a variable with his current balance, plus a variable with the balance...
asked on 20.07.2016 / 15:33
5
answers

HTML element does not become visible

I have the following HTML: <form action="cadastro/cadastrando.php" method="post"> <div class="elemf"> <label>Nome</label> <input id="nome" type="text" name="nome" maxlength="15"/> <p...
asked on 05.06.2014 / 15:52
6
answers

Same number of characters in the password after md5

I'm doing a process of opening a modal and registering a user. The user's password is changed to md5() ; After this the password gets with 32 caracteres . When the user is going to load the user data to do an update. If the...
asked on 18.11.2015 / 13:50
2
answers

Accept only numeric input

nota = -1 while nota < 0 or nota > 10: nota = int(input("Informe a nota entre 0 e 10: ")) if nota < 0 or nota > 10: print("Valor inválido") I need to include in this validation code for, if the user types string (a,...
asked on 09.10.2017 / 21:28
3
answers

How many days are left for a date [duplicate]

Does anyone have a query in sql server that returns how many days are missing for a date? I have the employee's date of admission, I need to know, how many days to complete 45 days, and how many days to complete 90 days.     
asked on 21.07.2017 / 19:53
3
answers

Get checkbox values with javascript

I have the following code in HTML: <input type="checkbox" id="Pacote_i" name="Pacote" value="Pacote i" onClick="soma()"> <input type="checkbox" id="Pacote_ii" name="Pacote" value="Pacote ii" onClick="soma()"> <input type="checkb...
asked on 31.08.2015 / 14:48
2
answers

How to fire multiple exceptions?

foreach (Foo el in arr) { // ... Validate(el); // ... } In the example code, when foreach is executed, an exception can be raised from the Validate function that will be handled in who called the method that contains...
asked on 13.09.2017 / 16:48