Posts by Fabricio • 290 points
9 posts
-
-2
votes4
answers985
viewsA: Compare string with array to return the most compatible item
You can use a similar PHP text implementation in JS Example Ai loops and returns the item with the highest score. //string a ser comparada com o array let str = "uma frase qualquer aqui"; //ao…
-
0
votes2
answers331
viewsA: Script vbs to restart a service if it is "stoppered"
If you only need to start it if it is stopped, just have it start in a bat run with administrator permission. net start Spooler If return (%errorlevel%) 0 worked, if return 2 is pq an error has…
-
0
votes2
answers601
viewsA: PHP Jquery dynamic autocomplete
Create an array of your products. When you have a change in category value you change your autocomplete to the specific array of that category. Example (I took the query to the bank to create the…
-
1
votes1
answer81
viewsA: How to pass via POST Javascript information to PHP
From what I understand you’re leaving both codes on the same page. When you are doing the POST via ajax you are receiving the entire code. When you just want to receive the code that contains your…
-
0
votes1
answer232
viewsA: Loyalty points system unexpectedly distributed points | Node.js Tmi.js
When the user enters vc triggers the setInterval function, but when the user leaves vc does not cancel it. What happens is that the client enters, before giving the time he leaves and enters again.…
-
2
votes1
answer1337
viewsA: Is there a way to add column comments in the same command as create table from Oracle?
You do this after create table. Cannot place comments in the same create table command. -- cria tabela CREATE TABLE user ( id number ); -- adiciona comentario comment on column user.id is 'unique…
-
1
votes1
answer43
viewsA: How to use require/include inside the repeat loop?
The problem is that the content returned from the page 2.php is always the same, From a single include outside the loop, since the returned value is always the same. So that you will redeclare the…
-
1
votes1
answer174
viewsA: SED USE WITH A VARIABLE
If I understood what you want to do. That would be, add a command in the IP-based sshpassh.sh file that has been reported. You do not need to add the IP and then give a sed to change the line.…
-
3
votes2
answers7693
viewsA: Foreach in SQL to put a value in a variable
I don’t understand why you need to use a foreach in this case, if you put everything in a query you can use an in. Anyway if you really want to use the foreach can do something similar to the answer…