Posts by Almerindo Abreu • 116 points
13 posts
-
0
votes1
answer46
viewsQ: Class declaration error in React-Native
I am creating a React application with the following flow: Man App.js imports the Components header, body and footer. The body.js imports an event class called Play. However, in the declaration var…
-
0
votes1
answer331
viewsQ: Return messages through exceptions
Hello, I generated a doubt regarding the most "elegant" way for my method to display a message to the user. I’m using the following blade in order to return messages, but it does not return…
-
3
votes1
answer1116
viewsQ: Download functionality with Ajax request
I’m doing a download function with request via ajax in my application, but it is not working. If I access the address using the GET method with parameter in the address, the download works…
-
1
votes1
answer379
viewsQ: MVC - Intermediate php file in the View and Controller interface
Hey there, guys. I was reflecting on the existence of a relationship step of the structure of my project. The organization of my project is as follows: [1 ] When accessing the page the user can…
-
1
votes3
answers367
viewsA: Use value returned via ajax with switch case on current page
I meet the specification mentioned in the question, I thought of the following solution: This switch case needs to be on the same form submission page using the select value for a specific case. I…
-
0
votes1
answer224
viewsA: Merge two tables with PHP and recover the data in the same html select element
If the columns described are true to what is in your database, you have two typos in your select: id_turma_ is as id_turma_facul and id_discip_facul is as id_disciplina_facul. I made these…
-
0
votes1
answer438
viewsA: PHP link on Submit button
Only with PHP could you use the function header('Location:' . $endereco). Would look like this in PHP: <?php if(isset($_POST['submit'])){ $selected_val = $_POST['datas']; header('Location: ' .…
phpanswered Almerindo Abreu 116 -
0
votes1
answer62
viewsA: How to structure a multi-array foreach/implode
A suggestion would be to take only the last array value $file['path'] using the function end() that will always return the file name, so you will not have folders and subfolders in the table.…
phpanswered Almerindo Abreu 116 -
0
votes1
answer345
viewsQ: Trigger function by pressing F5 (update)
I am making an application in PHP that, through the selection of a data of the combobox related to vessel and a date field, I make a SELECT in the database returning some data that is inserted in a…
-
0
votes2
answers78
viewsQ: Generate HTML components with PHP and these assign javascript characteristics
I created a form that has a panel and this panel has a input date with a jquery datepicker. If you have data entered in the database, my PHP creates more lines in this panel (through the ajax) with…
-
0
votes1
answer420
viewsQ: JOIN 3 tables (LEFT JOIN)
I have a question regarding the best way (concerning performance and execution) to make the following select... Initially I thought of using LEFT JOIN, but I came across some restrictions on its…
-
1
votes1
answer1103
viewsQ: Disable the possibility of the ENTER key acting on another button
Hello, everybody. I have a form in which has two Tables, inside the second table has an input text [sign 1 of the image]. This input text searches the record when pressing the ENTER key. But when I…
-
0
votes1
answer51
viewsQ: Communication between PHP files with Ajax
Good morning, you guys. I’m starting with PHP, and I’m trying to do some practical tests. I created an input text and when pressing the "ENTER" key is called an ajax doing post of this data and…