Posts by Anderson Amorim • 187 points
25 posts
-
1
votes1
answer2283
viewsQ: Symbolic link does not work on Laravel
I’m trying to make a folder inside the directory public Storage of Laravel, but I was unsuccessful. The folder to be made public is on the way: project/storage/app/images Yes, outside the public.…
-
3
votes3
answers277
viewsQ: Using regular expressions with square brackets
Greetings, I have to remove any occurrence of texts between brackets. As for example: Ex.: [Text in square brackets] Text out of square brackets. Output would be: "Text out of square brackets"; I…
-
0
votes1
answer28
viewsA: Android Studio app stopped picking up Json online from nothing
I solved using: String out = new Scanner(new URL(URL).openStream(), "UTF-8").useDelimiter("\\A").next(); //Comparaçao de strings String[] array = out.split("/");…
-
0
votes1
answer28
viewsQ: Android Studio app stopped picking up Json online from nothing
I am developing an APP, where it needs to get data online via Json from an API, without making any changes it stopped working while it was working normally, I have tested on the server that this…
-
0
votes1
answer1081
viewsQ: Get span information inside div
I have the following HTML structure: <div class="ui fluid search dropdown procuraAluno selection multiple active visible"> <select name="ci_direcionado" id="cisOptions" multiple="">…
-
2
votes0
answers103
viewsQ: Facebook share button, how to customize?
I’m looking to make a share button to put on a website. The button will basically share a url with data I’ve already saved in my variables. When reading the documentation of the facebook share…
-
0
votes2
answers94
viewsQ: Variable value is not changed inside ajax
I am trying to assign a value to a variable inside the sucess of an ajax, however, when checking the value of this variable, this value is with the variable creation value, follows: var emailPessoa…
-
0
votes0
answers465
viewsQ: Check if object arrived by post API
I am making use of the post office API. I was able to track objects perfectly. But there is still an action to complete the ratreamento: check if the object arrived. My wish was for the API to…
-
1
votes1
answer52
viewsQ: Event in a single div with equal classes. How to do?
Greetings. I created some div inside a foreach, all with the same class, inside that div has an element that I wish, when clicked, show another div that is inside the parent div created. However, as…
-
0
votes2
answers104
viewsA: Problems Making Simple Insert in Bank - Unexpected Token
With the suggestions made to me, I could not solve the problem, but I managed to solve it in the following way: Instead of using now() I used CURRENT_TIMESTAMP, getting 1 query like this: INSERT…
-
0
votes2
answers104
viewsQ: Problems Making Simple Insert in Bank - Unexpected Token
I’m having problems making entries in the database, someone could tell me what the possible problems? SQL 1: INSERT INTO data_inicio (data_sys, descricao) VALUES (NOW(),'Data de inicio'); Error in…
-
3
votes1
answer821
viewsQ: Take numbers together the letter with str_replace
I am wanting to take a part of a string, more specifically numbers together with the letter, for example: $string = "Parte da string - 60h" Well, I use str_replace as follows: $string =…
-
0
votes0
answers60
viewsQ: Problems when passing parameter by POST via Ajax
I’m having trouble passing parameters via POST to my PHP methods. I have the variable in JS properly populated with the attributes I want to pass on. But when trying to access the variable in my PHP…
-
2
votes1
answer443
viewsQ: How to import files from bootstrap sources
The bootstrap icons are not picking up on my project. I searched and saw that it can be solved by importing the bootstrap source files. What is the best way to import these files into the body of a…
-
1
votes2
answers1404
viewsQ: Check if checkbox is selected in input
I would like to trigger a direct javascript event in the checkbox input when it is selected. For example: <input type="checkbox" isSelected="call()"> Note: I don’t want to make a script.…
-
0
votes2
answers47
viewsQ: How to add values from several strings to another without this string losing its value?
I’m going to add values to a variable inside a for as follows: function gerarcods(){ var alfa = $("#nalfa").val(); var qtdcods = $("#nqtdcods").val(); codigos = ""; for(i = 1; i<= qtdcods; i++){…
-
0
votes1
answer389
viewsQ: Slow page loading locally after configuring virtual hosts
Greetings, I’m having problems loading pages on my local server. This problem happened after I set up 3 virtual hosts and when I try to load my page through it, it takes A LOT to load. Could someone…
-
1
votes0
answers82
viewsQ: Disable JS script on certain pages
I added a JS script in the PHP base of my project in Codeigniter, this makes other controllers also run this script. How would a particular page not run this script?
-
0
votes1
answer46
viewsQ: Platforms that run Tomcat
Can anyone tell me which platforms (Windows, Linux, Mac, etc.) run Tomcat 9.0? If possible, indicate a reference for such information. Grateful.
tomcatasked Anderson Amorim 187 -
0
votes2
answers323
viewsQ: Execute document and send variable value in PHP by Ajax
Hello, I have to develop a confirm button for deletion of a product. For this, I had the idea of running a file in php through ajax from the moment I click on "Confirm" in JS confirm, along, passing…
-
0
votes1
answer159
viewsQ: Assigning lines from a document to a String array
I am trying to assign to a string array certain document lines, the content of the document is this: 3 50 5,80,0 15,5,1 12,30,0 I want, from the third line, each row to be stored in a given Dice of…
-
2
votes2
answers1598
viewsQ: Test access method, whether it is GET or POST
I’m having trouble inserting data into my form. The problem involves the transaction mechanism of my form, displaying the error message of die before you even load the page. My advisor said the…
phpasked Anderson Amorim 187 -
0
votes1
answer292
viewsQ: Use of Lastinsertid() more than once
I need to use lastInsertId() more than once in my application. Follow an example of such an event: <?php //CONEXÃO COM O BANCO DE DADOS $pdo=new…
-
2
votes2
answers240
viewsQ: Style input through jQuery Validate
I am using the jQuery Validate plugin to validate a form. When I declare the rules in the input declaration the form turns red when it doesn’t fit, and blue when it fits. Here is an example of an…
-
0
votes1
answer61
viewsQ: Page does not load for cause and transaction
I am trying to implement a transaction on my Sqls, but because of them, my page does not load. Follow the code: <?php //CONEXÃO COM O BANCO DE DADOS include_once("conexao.php"); //VARIÁVEIS COM…