Example, I have a query mysql like this
SELECT * FROM post WHERE fecha >= $time;
where $time = current week
I also have a array with the days, which are grouped
$days = array('Lunes', 'Martes', 'Miercoles',...
I have a dilemma when printing a variable, you see, this is my query in SQL:
SELECT MONTH(fecha_del_deposito) AS mes, SUM(importe) as monto FROM pago_cliente
And it throws the following:
Which happens to query in php:
'cantidadPa...
I'm trying to create a JSON and I need to do the following:
var arreglo = [];
var sumar = () => {
var id = arreglo.length + 1;
arreglo.push({id: id});
console.log('Arreglo', arreglo)
};
sumar();
as Result prints: Arre...
I'm trying to transform an array
Integer[][] mapArray = new Integer[52][52];
for (int w = 0; w < 52; w++) {
for (int x = 0; x < 52; x++) {
mapArray[w][x] = -1;
}
}
In a single-dimension array
Inte...
question:
How to show the elements of an array with arrow functions?
I understand that given an array with elements, I pass the array as a parameter, but what I do not understand, is that it must go in the body of the function?
Can this be...
I try to do the following ...
class Nested
{
Persona[] Empresa;
struct Persona
{
public string nombre;
public string apellido1;
public string apellido2;
publi...
Good morning.
I am trying to create an array with values grouped by categories, by AJAX I receive two variables one contains a string with the name of the category and the other contains an array with the values of the category for example:...
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 '...
Hello everyone I am working with native js, in this function I return the product of the elements in the array, what I can not achieve is to discard the case of an empty array, it always shows me the 1, but if it resulted in change the value to...