Posts by dalton gonzalo Fuentes • 155 points
18 posts
-
0
votes1
answer1814
viewsQ: Take all data from an HTML table and insert it into the database
I have an editable table in html, when clicking save, I need to take all the data of the table, send by ajax to the page that makes the INSERT of all the lines in the database. My doubt would be:…
-
3
votes1
answer85
viewsQ: Prevent browser autocomplete in password
I have a lock screen that depresses the user by inactivity, asking only the password of the same to access again. It happens that this screen has no use if autocomplete is on, since anyone can touch…
-
2
votes2
answers47
viewsQ: How to update a database without the action from the customer?
I am not very advanced in php, sql and everything, and I came up with the following doubt. Assuming today is the 10th and I want to pass the 12th a BD information is updated to 'sent' for example,…
-
5
votes1
answer1177
viewsQ: Send and pick up GET by AMIGAVEL URL
I have this tag on the index <a href="projeto">Projeto</a> Who sends me to this page localhost/project.php That I’m leaving like this localhost/project With the RewriteEngine on…
-
0
votes2
answers1248
viewsQ: Sum values returned from while
I have a table that has the column value, I query these values as follows $sql2 = 'SELECT * FROM comisao_trabalho WHERE idJob="10" && pagoA="Dalton" ORDER BY id ASC'; $buscar =…
-
0
votes3
answers141
viewsQ: Which HTML attribute cannot be modified?
Using PHP I display a table, in id of each li, I put the id of the record that is in the database. Once they displayed, I have an option that deletes the record, I do it through AJAX, caught the id…
-
0
votes1
answer856
viewsQ: Block PHP page access through the URL | Doubt about PHP page security
DOUBT 1 On my site I have PHP pages that register/login users, products, and other things, which I call through ajax. Have some way to not allow people to access these pages via URL? Example:…
-
-1
votes2
answers651
viewsA: SQL query with list in WHERE
I managed to solve it. I leave here the solution. $retorno = array(); $retorno['dados'] = ''; $retorno['dados2'] = ''; $sql2 = "SELECT * FROM endereco_atendimento WHERE bairro='Centro'"; $buscar2 =…
-
0
votes2
answers651
viewsQ: SQL query with list in WHERE
I have a query that searches all id’s of a comic. I make a WHILE and put them in $retorno['dados']. Since there is nothing separating them, they are all together. If you return the id’s 41, 45, 50,…
-
0
votes1
answer706
viewsQ: "include" in javascript or something similar to reduce code size
I have a Dashboard where when some value or information is updated, automatically the other values are recalculated without refresh. An example is that when adding an expense to the table, it needs…
-
1
votes3
answers5506
viewsQ: Format string or float for currency
I’ve been doing some research but I couldn’t find a solution. I have a float for example: 2087500, I want to leave it as follows $20,875.00. I found several methods of passing float to currency but…
-
0
votes1
answer381
viewsQ: Add filtered values from an html table with jquery
I have a tbody mixed tr of these: <tr class="odd"> <td class="id-despesa"> <p class="orig"> <?php echo $exibe2->id ?> </p> </td> <td…
-
2
votes2
answers804
viewsQ: Upload PDF by ajax
I have a form with several inputs text and 1 input file (where I send a PDF file). If I send by ajax it does not send the "FILE", I tested send without ajax, only by Ubmit, and it worked. The…
-
0
votes1
answer440
viewsQ: Search neighborhood from street
Looking a little I found this method of consulting the zip code from neighborhood and city or all data from the zip code. But this query is only working when I put the information directly in the…
phpasked dalton gonzalo Fuentes 155 -
0
votes3
answers741
viewsQ: Compare data from two tables
I have two tables: Tabela1 Tabela2 +------+----------+--------+ +------+----------+------------+ | id | idCidade | bairro | | id | idBairro | logradouro | +------+----------+--------+…
-
0
votes1
answer50
viewsQ: Ajax receiving array that shouldn’t
I’m putting together a popup registration form, so I had to use Ajax for authentication. It happens that when I type an already registered email it shows me the message correctly (already registered…
-
0
votes0
answers59
viewsQ: Code is not sending data to the database
This first code for registration is not working, it is equal to another that is working that registers users, is giving error in $insert name and display the message Unable to enter record:, I tried…
-
0
votes0
answers1527
viewsQ: Check if the completed email already exists in the database in "REAL TIME"
I have a registration form, but I need that when filling the email field, when the person passes to the next field, he search the database and return a message warning if this email is already…