All Questions

1
answer

What is the difference between array_replace and array_merge?

I would like to know the difference between array_replace and array_merge , because in some cases the two seem to have similar behaviors. Example: $informacoes = ['nome' => 'wallace', 'idade' => 36]; array_replace($i...
asked on 01.04.2016 / 13:47
3
answers

Get code from a li

I need to get the <li> complete of all checkbox checked. My code that is dynamically mounted is below: HTMLNovo = ' <li class="item item-checkbox widget uib_w_69" data-uib="ionic/checkbox" data-ver="0">...
asked on 19.11.2015 / 11:52
3
answers

How and where to implement business rules in the Entity Framework?

I have the following example of a software that uses the Entity Framework , which accesses a database with only one table named Produtos with the following fields: Field int produtoid . Field string nomeproduto . Field...
asked on 20.05.2016 / 01:22
3
answers

How to find the negative of a color in hexadecimal?

I would like to know what calculation I can use in language like javascript , php or python to find the negative of a cor hexadecimal. Example: If white negative is black, then I assume: '#FFFFFF => #000000'...
asked on 11.12.2015 / 14:34
1
answer

Use CONCAT to adjust the amount of php mysql numbers

I need to complete the amount of numbers to display on the screen, what would that be. the quantity that would be an example: 20 need to enter 15 characters with 0, Example: 000000000000020 . A friend of mine showed me in Excel a way he...
asked on 03.05.2016 / 20:45
2
answers

In CSS, is there any way to set the hover inline?

I often need to develop templates for sending emails. However in some cases using the style tag to make the style definitions does not work. Thus, you need to set the style values for the inline elements. For those who do not understan...
asked on 29.06.2016 / 14:16
2
answers

Add date with int

I'm trying to make a sum of days, reported in a int field, with a date field using SQL. I tested the form below, but it adds up to the day, but ignores month and year. Is there any way to do this sum? SELECT DATE_FORMAT(ocorrencias.dt_...
asked on 22.03.2016 / 21:44
2
answers

MYSQL - Check if PK exists if yes does UPDATE if it does not exist INSERT

I did not want to have to do two transactions in the database, currently I'm doing SELECT first to know if the record already exists in the table, then I do or INSERT or UPDATE depending on the case, to do though a transacti...
asked on 12.09.2018 / 20:50
2
answers

In C ++ what is the command corresponding to Java super ()?

In Java: public class Teste extends Testando { private String nome; private int numero; public Teste(String teste, String nome, int numero) { super(teste); this.nome = nome; this.numero = numero; } }...
asked on 26.03.2016 / 21:10
2
answers

How to do nested tables with bootstrap?

How can I do nested tables with the bootstrap as in this example with ASP.Net ? Is there a way to do this with bootstrap?     
asked on 17.02.2016 / 14:34