Posts by Gato de Schrödinger • 2,367 points
141 posts
-
4
votes1
answer57
viewsA: Send input content to database
Your code is not very organized in the HTML section. You can’t get an exact idea of your problem. From what you have reported, this Javascript function is not required. Only if you might want to use…
-
0
votes2
answers1140
viewsA: How to save information from an html text box to a javascript variable?
Dude, try it this way. I don’t know your real need, but this way you can have a basis. If the entered value is already inside the array, an alert message will appear and the number will not be…
-
0
votes0
answers54
viewsQ: Problems with creating recaptcha in the login area of my web system
Hello, I’m following the google steps to create a recaptcha in the validation and login area of the system. I am entering in the right places, of my code, the keys generated in google. However the…
-
0
votes1
answer120
viewsA: Unset does not work
Tereza, you may have to create the file with php code on another page. Or, use Javascript with AJAX. (I’ve had a similar problem with this) I will put the answer only with the use of PHP. And then…
phpanswered Gato de Schrödinger 2,367 -
1
votes1
answer199
viewsQ: Can I place a TD of a TABLE with button features through Bootstrap classes?
I used to use Buttons inside TD when creating dynamic tables in which each row (TR) has a button. But I started to see that instead of putting buttons inside the TD, they put a TAG "a" and assigned…
-
0
votes1
answer56
viewsA: Relationships of Tables and Databases
"Integrity constraints are used to ensure the accuracy and consistency of data in a relational database." We have some types of constraints, such as the Referential Integrity Constraint that says…
-
1
votes3
answers419
viewsA: Browser only emits audio after I click on it
Brother, I managed to partially solve your problem. Firefox and Chrome removed the possibility of using the automatic playback of the videos and Audios (in theory this was good, rs). There is no way…
-
0
votes0
answers100
viewsQ: How to create a Download while the page is not all processed after the return of AJAX?
Hello. I have a code that queries the database (when loading the page) to fill a table (This is done via AJAX). I created a div that contains a gif from a Download and it displays as AJAX fills the…
-
1
votes1
answer55
viewsQ: How to make the button occupy all the height and width of its parent element?
Hello. I have a table that is dynamically populated with data coming from the Mysql database. For this I use AJAX and PHP. I have the following question: How do I make a button (which is actually…
-
1
votes1
answer107
viewsQ: How to use a single form to register a new user and change data of an existing user on the system?
Hello. I have a form and table (which lists company employees). When I click on a TR (from your respective employee) in the table, the form data is filled in with the company employee data. So, if I…
-
0
votes2
answers188
viewsQ: Message with a confirmation question before completing the click event
I am developing a task management system in which changes are made to fields in the database depending on certain buttons we click (Via Ajax and PHP). I would like, when clicking on a button, to…
-
-2
votes1
answer148
viewsQ: What is the best accommodation to maintain a system?
Hello. We are developing a Task Management system (in the company where I do internship) and now we will need to host the system on the web. The system is made with a lot of Javascript/jQuery, PHP…
-
2
votes3
answers1959
viewsA: How to determine which characters can enter the input?
I believe I got it using the following code: <div class="form-group"> <label for="senha">Senha:</label> <input class="form-control" type="password" id="senha" name="senha"…
-
3
votes3
answers1959
viewsQ: How to determine which characters can enter the input?
I have a login form and I have to limit the input to receive characters with the following conditions: A capital letter A number A Special Character A minimum of 8 characters Special characters can…
-
2
votes1
answer67
viewsQ: Interrupt setInterval for a function to run in its place?
I have a code that makes a query in the database (every 1 second) using the setInterval and updates a dashboard (Via AJAX and PHP) from my system, which shows the summary of all user tasks. (To give…
-
1
votes1
answer2437
viewsQ: How to catch the first and last day of the current month ? PHP
Hello, everybody. I would like to take the first and last day of the current month and store them in two variables to use them in a query condition of a MYSQL query. You know a way to accomplish…
-
1
votes1
answer140
viewsQ: Error using filter_input in PHP
Hello, folks. I have one and I’m trying to process its data in the php file. (I’m using AJAX to upload to the PHP file). The query was normally performed before I put the filter_input. However,…
-
4
votes1
answer78
viewsQ: Security in a Task Management System
This is something that raises many questions. I am creating a Task Management System. Most fields are INPUTS or SELECTS FORMS. Most of these fields users only interact when they have already logged…
-
1
votes1
answer136
viewsQ: Problem with events and functions running multiple times in jQuery code?
Hello. I’m having a very serious problem with events that are triggered several times by clicking a certain button. I have the task management system below: When I click on the status button (That…
-
0
votes1
answer141
viewsQ: Questions about dynamic system update of Dashboard
I am creating a task management system and I have a Dashboard that displays the activity updates. The problem is that I can only update this Dashboard when I refresh the page because I am displaying…
-
0
votes1
answer134
viewsQ: Button click event is only held once in jQuery
So I have a button that is generated dynamically via AJAX. I made an event in jQuery that when clicking the button, it runs one of the conditions that are inside the event (in IF and Else If).…
-
2
votes3
answers1077
viewsQ: How do I send my form along with another variable via AJAX POST to PHP?
Then, I have a form and send his data to a PHP file via AJAX. I’m doing this normally. Only now I had the need to send along with the form, plus a Javascript variable from AJAX to PHP. To use the…
-
3
votes2
answers334
viewsQ: Perform a DELETE with Where being the result of a SELECT (MYSQL)
Guys, have a code in which I use the result of a SELECT to be a condition in the WHERE of a DELETE. I’ll leave the code part to see if you can spot any errors. UPDATE (which is at the top of the…
-
1
votes2
answers1068
viewsQ: Problems with event click on jQuery, AJAX, and PHP
I’m having a bit of a complex problem and I hope you can help me. I have a code that makes a query (Via AJAX and PHP) and fills a table with the return of this query. So far so good. Everything…
-
0
votes0
answers520
viewsQ: Change an option of a select according to the choice of another select (HTML form)
Hey, here’s the thing. I have an area of a form in which I select the code of the company, company and also show the taxation of that company. I will show the image of the fields: (my problem is in…
-
1
votes3
answers503
viewsQ: I cannot display the output of a SELECT COUNT (MYSQL) in the HTML page
Hello, I’m having a problem with returning a Mysql query. I make a query that makes a SELECT Count of a field in a database. The problem is when I will display the return of the query in HTML, it…
-
0
votes1
answer6535
viewsQ: How to use line break in the PHP variable that will be stored in a database table?
My question is the following, I have a field in a MYSQL table that stores data and this data is displayed to the user. This data is entered by users, however, users can also add information in this…
-
0
votes2
answers53
viewsQ: Query error in Mysql using PHP
Could you explain to me why PHP code does not execute variable code (this code is a query) in the ELSE part. When the IF (Ifcontains complements of a query that will be executed in mysqli) is not…
-
0
votes2
answers77
viewsQ: How to pass a value from a button (dynamically created within a td) to an ajax function and query the database with that value?
Hello, I created an area that does a search and returns values (from a database query using ajax) within a table. Since one of the table’s tds has a button inside. I would like to query the database…
-
2
votes1
answer119
viewsQ: Event that performs a database query when clicking on a <tr> table
Hello. I’m making a system that when the form is submitted, a table is generated with the survey data. So far so good. Now I’d like to know how I do for when I click a button (), which is inside a…
-
0
votes1
answer158
viewsQ: I’m unable to fill the <td> dynamically with AJAX and PHP
I have a code with a form that when I do a search and list the employee’s activities. I am using PHP and AJAX, but the tabelanão is being filled. See the Code:…
-
0
votes2
answers92
viewsA: Problems with sending form
I managed to solve it, with the help of a friend. I used jquery’s $.POST to send the data to the PHP file that sends the form. I will leave the code here HTML (Do form), Javascript (jQuery of…
-
0
votes2
answers150
viewsA: How to pull all rows of the database in php but only showing the value of a specific query column once?
Using "DISTINCT" in your select would already solve the problem of column data coming repeated. With "DISTINCT", the data from that column (with the same value) is only returned once in that query.…
-
0
votes0
answers48
viewsQ: Problem with relationship between two SELECT filled with PHP
Hello. (I asked a question about it these days, but I could not get results with the answers). I have two selects (which are filled with PHP data coming from mysql database). I would like when I…
-
1
votes2
answers910
viewsQ: Change the OPTION of a SELECT according to the change made in the other SELECT
Hello, everyone. I have a question regarding a form. I have a form in which your SELECT has your OPTION filled through PHP (A select made in a create file). However, there are 3 fields (SELECT) that…
-
0
votes1
answer53
viewsQ: Database update problems using PHP
I have a UPDATE problem with the database. I have a form that sends the data to a php file, which would update a table of the MYSQL database. However, update is not performing the insertion and…
-
0
votes2
answers92
viewsQ: Problems with sending form
I have a problem with my code. I have a page that has a modal form that opens by clicking a button in the header menu (which is the same on all pages of the site and is added to the pages via PHP).…
-
-1
votes1
answer54
viewsQ: Restrict my form to receive only . doc, . docx and . pdg files
I have a page and a form that receives a file in the "File" field. I send this file to the server through a PHP code. I would like to restrict that this form "File" field only receives files of type…
-
0
votes1
answer66
viewsA: Non-fixed menu at the top when loading the scroll page in the middle of the page
Guys, I got it with Sam and Sergio’s tips. I really appreciate your help. Javascript was as below: $(function() { $(window).on("scroll", function() { /* FUNÇÃO DO MENU SUPERIOR */…
-
0
votes1
answer66
viewsQ: Non-fixed menu at the top when loading the scroll page in the middle of the page
So I’m having a problem and I’ve been racking my brain. I made a top menu, in which are the social networks and a second menu below with the site items. The problem is that I made sure that when the…
-
1
votes1
answer367
viewsQ: Problems in the Bootstrap Dropdown Menu on SM screens
I’m having a problem with a menu dropdown that I made using Bootstrap. The problem is this, the menu worked perfectly for size devices XS. However, it does not work on size devices SM (That’s what I…