Posts by mminetto • 21 points
3 posts
-
0
votes1
answer73
viewsA: Remove last comma from pagination
Try to use something in this sense: $total_paginas = ceil($total_paginas); $painel = ""; $f = $pagina + 2; if($f > $total_paginas){ $f = $total_paginas; } $n = $pagina - 2; if($n < 1){ $n = 1;…
-
1
votes2
answers431
viewsA: Web system accessed by various companies appsettings
One of the solutions is to model the bank containing foreign keys for companies. Ex: You have the user "John" with the foreign key for the company "X", soon when the "John" access the system you…
-
1
votes2
answers180
viewsA: Ajax request in ES6 constructor
The scope of the Success function of the ajax request is different from the scope of the constructor, try this: class pergunta { constructor(perguntas = [], respostas = [], desafios = [], valor =…