Posts by Leonardo Furlan • 183 points
12 posts
-
0
votes1
answer122
viewsA: How to view and count the days of a week between two dates using javascript and php
Hello. I don’t know if that was your question, but see if the excerpt below helps you. According to https://www.php.net/manual/en/function.date.php, the function format('w') is the numerical…
-
0
votes1
answer44
viewsA: Form does not send the data to the next page
You need to use the attribute name for each input. Example: <input type="text" name="id_chamado"> Also, avoid leaving the attribute disabled empty. Or is true, or is false. As long as it takes…
-
0
votes1
answer190
viewsA: How to display message after updating a record using PHP?
There is a typo, missing a hyphen. In $atualizar = mysqli_query($this>connection, $query); change to $atualizar = mysqli_query($this->connection, $query); and see if you solved the problem.…
-
0
votes1
answer61
viewsA: Mysql relationship between two tables
This could be a relationship 1..n (one for many), which a product must be associated with only one family and a family may have one or more products. In this case, you need to insert a foreign key…
-
1
votes1
answer230
viewsA: CRUD - code help
The problem may be in the existeEmail() function, more precisely in the line of the query. Because of this error, a syntax error is generated that terminates the script and consequently, is not…
-
2
votes1
answer98
viewsA: Insert Database items into Tbody of an HTML table using a repeat loop
Good morning. It is possible to place the echo within the tbody table. For that, put the code PHP that makes the query in the shop.product table at the top of the page. Soon, we will merge the…
-
3
votes1
answer683
viewsA: Date sorting problems in Datatables
Good afternoon. Import the datasorts.js plugin below the import of datatables.min.js: <script type="text/javascript" src="DataTables/datatables.min.js"></script> <script…
-
0
votes1
answer149
viewsA: PHP, HTML FORM, how to interact with values in forms?
Hello. I’m not sure I quite understand your question. But the basic HTML + PHP interaction would be to put select inside a form, with the action pointing to the page that will contain the variable…
-
0
votes1
answer121
viewsA: input that complete word being typed
There is another alternative to jQuery-ui autocomplete, using only jQuery and a bit of CSS. <!DOCTYPE html> <html lang="pt-br"> <head> <!-- jQuery 3 --> <script…
-
0
votes1
answer52
viewsA: Jquery Plugin Mask does not work
Good afternoon. Check if the jQuery call is before the jQueryMask library call. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script…
jqueryanswered Leonardo Furlan 183 -
0
votes1
answer408
viewsA: Does not fire show.bs.modal event
Hello. I believe you are missing code for your modal, since you are using Bootstrap. I will post here the code of how I usually do. Table: <td class="actions"> <a href="#"…
javascriptanswered Leonardo Furlan 183 -
3
votes1
answer126
viewsQ: Performance according to box control modeling
I am making a system for daily box control, which allows launches/deletion of values. Below is the table that will store the values, filled with some data to exemplify. There are more fields, but…