Posts by Tales Peres • 246 points
16 posts
-
0
votes1
answer30
viewsA: Error trying to generate Webpack
Apparently the problem was in the webpack version I was using, was just install an older version that worked normally. npm install -g webpack
-
0
votes1
answer30
viewsQ: Error trying to generate Webpack
It has a project that uses webpack along with nodejs and angular, but when trying to use the "webpack" command on the terminal to generate the webpack Bundles it displays the following error…
-
0
votes2
answers95
viewsA: Disable hidden DIV
To make the button CPF do not get selected from the start, just change the class active for notActive Wrong (active): <a class="btn btn-primary btn-sm active inf" href="#info1"…
-
1
votes1
answer38
viewsA: How to take values from one or more inputs
You need to put the value to get the value of the input: var a = parseInt(document.getElementById('valor1').value); var b = parseInt(document.getElementById('valor2').value); var c =…
javascriptanswered Tales Peres 246 -
0
votes1
answer54
viewsA: {HELP} I will change the Radio Button Link in a Form, but it does not arrive in the email
If I understand correctly, each radio send the data from your form for $_POST to a file. different php, that is, all you need to do is change your javascript/jquery as follows: <script…
-
0
votes2
answers67
viewsA: Check with php and disable option
You can make it look like what was done to display the selected, follows the code below: <select> <?php for ($i=0; $i < count($dados); $i++) {?> <h3>Posição</h3>…
-
2
votes2
answers297
viewsA: Determine time in function
You can do it this way: <?php $hora = date("H:i:s"); $ler = $_COOKIE['viu']; if( $ler == 1 || (($hora > "00:00:00") && ($hora < "11:59:59")) ) redirect('libera.php'); else…
-
0
votes2
answers201
viewsA: Return an "error" message if the mysql query returns empty
You can use a check the amount of rows returned, if it is greater than 0, it does the while() otherwise it may display a echo() with an error message Would look like this: </head> <body>…
-
0
votes1
answer30
viewsA: Bring in select html the record that was saved in the database
You can do it this way, where it checks the id and if it matches he displays a selected: <?php if(count($resultMedicoAll)) { foreach($resultMedicoAll as $res) { ?> <option…
-
1
votes1
answer33
viewsA: Search database image in php
How are you passing the $path in a javascript code, you will have to open php inside the code, otherwise it will display $path instead of the contents of the variable. What needs to be changed:…
-
1
votes1
answer19
viewsA: Mail to same page in php
According to the documentation of the mail(), he will return TRUE if the email is successfully accepted to be sent, otherwise it will return FALSE. That is, even if the email is accepted to be sent,…
-
0
votes2
answers183
viewsA: Change button link according to radio
I made a few minor changes but tried to make as much as possible like your code. <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> <form action=""> <br>…
-
3
votes1
answer179
viewsA: How to insert PDO records into Mysql sequentially
Variables are not equal. In the part where you receive the values of the last 3 fields per $_POST is under the wrong name in relation to your Insert in the bank. How are you: $Area2 =…
-
0
votes2
answers76
viewsA: Problems with getimagesize() PHP
You need to pass the complete location for that function getimagesize() can find the image. Example: getimagesize('http://meusite.com/arquivos/imagem.png');…
phpanswered Tales Peres 246 -
1
votes1
answer232
viewsA: BETWEEN PHP compare dates
You are doing a select searching in the table where start is between 2019-03-11 9:30:00 and 2019-03-11 9:45:00, and from what you said, the start time that is registered at the bank is 2019-03-11…
phpanswered Tales Peres 246 -
0
votes2
answers238
viewsA: Send form data to html page
In your form you exchange the action="envia.php" to the page you want to send the form data to. Then you receive this data and enter directly into the page to be displayed.