Good morning!
I'm inserting products into a table with JQuery, similar to a shopping cart, and need to compare if the product has not been inserted before.
I tried with the code below, but this is giving problems when comparing with the array,
W...
I'm making a question that the number of elements in the vector are in 10 ^ 6 and just wanted to copy certain element to it only I did the normal but common way, is there another possibility if I make the copy faster? >
for(i = 0; i < teste;...
Dear experienced developers and apprentices of the art of coding.
I think it's common for some system to have to check the next item for a array . For example in this case I'm checking if the next one is the same as the previous item:...
How to create a dynamic array in this way:
//Apenas um exemplo abaixo:
String valor0 = "1;2;3;4;5;6;7;8;9;0";
String valor1 = "1;2;3;4;5;6;7;8;9;0";
String valor2 = "1;2;3;4;5;6;7;8;9;0";
//Um array dentro de outro array, porém sem definir s...
I'm graduating in Systems and I'm developing a system, and my difficulty is to remove an element from an array, because the problem in question is that when it has more than one element it normally removes, but when it has one it does not remove...
I'm getting an array of JSON in the back end like this:
{"idDistrito": "23",
"nome": "rere",
"codigoDne": "154545",
"cns": "565665",
"entidade": {
"idEntidade": "1",
"nome": "Entidade 01"
},
"e...
public static function getAllCount(){
$sql = "SELECT COUNT(Title) from ".self::$tablename." GROUP BY category_id";
$query = Executor::doit($sql);
return Model::many($query[0],new EventData());
}
FOREACH ---
foreach ($evcount as...
I need to create a sparse array of type dynamic cross-list and my cells are of type:
typedef struct CELULA{
int linha;
int coluna;
double valor;
}CELULA;
However, every time I create a new cell in a function, I do not know how...
I have a file in php proceso.php that receives information in looping via jquery and makes a request to another page with curl, this file does something around 4 to 5 thousand requests one by one, everything worked much more after I restricted a...