Posts by R.Gasparin • 467 points
33 posts
-
0
votes2
answers48
viewsA: Accessviolation when changing Borderstyle
I did it this way: procedure TfmContasPagar.FormCreate(Sender: TObject); var RedimensionarTela : String; begin RedimensionarTela := TUtil.Sql.SQLLinha('SELECT REDIMENSIONAR_TELA FROM USUARIOS WHERE…
-
-1
votes2
answers48
viewsQ: Accessviolation when changing Borderstyle
Hello! I’m trying to change the borderstyle property at the event onCreate form, but error occurs AccessViolation, someone knows how I can solve? My code: procedure TfmContasPagar.FormCreate(Sender:…
-
2
votes2
answers259
viewsA: Send e-mail with various attachments
Below follows the way it worked for me, it was just a detail! Melissa helped me: /users/111325/melissa if pAnexo.Count > 0 then begin for i := 0 to pAnexo.Count - 1 do begin…
-
3
votes2
answers259
viewsQ: Send e-mail with various attachments
I am sending e-mail through the INDY, the email is being sent and the attachment is going, but as it appears in the code below, I do a go through all the attachments, and it only sends the last,…
-
1
votes0
answers49
viewsQ: Form does not POST
I’m trying to enter a user’s registration, but the POST does not occur. Always falls into the exception echo '<script type="text/JavaScript">alert("Erro ao cadastrar!")</script>';. Below…
-
0
votes1
answer256
viewsA: Send id by URL to full Legend
Some details have been adjusted. Below is the resolution: php events. <?php $id = $_GET['id']; $consulta = $conexao->query("SELECT id, title, start, ADDDATE(end, INTERVAL 1 DAY) as end FROM…
-
2
votes3
answers1182
viewsA: Pagination in PHP
The code was not at all wrong, the problem was that I was using a part of it in the wrong place, followed some tips found on the internet and here in the comments. Below is the final code: <?php…
-
1
votes3
answers1182
viewsQ: Pagination in PHP
I made the pagination available in the code below, following an example here of the stack, but it does not work as I need it to be: display at most 5 records per page and create the other pages.…
-
0
votes1
answer18
viewsQ: Insertion of dimanically created inputs
I’m creating fields dynamically like this: $(document).ready(function(){ $('#quantidade').on('change', function(){ var quantidade = $('#quantidade').val(), campos = $('#campos'); campos.html('');…
-
1
votes1
answer51
viewsQ: For for field creation
I’m trying to get when the user enters a certain number in a <input> be created the same amount of fields, I tried to do in a way I found here, but I could not make it create the number of…
-
0
votes1
answer272
viewsA: UTF-8 does not work when entering data
Through the comments I researched how to do set names with mysqli and stayed like this: mysqli_query($conexao, "set names 'utf8'"); Correctly inserted seat seats.…
-
0
votes1
answer272
viewsQ: UTF-8 does not work when entering data
I use utf-8 at the time of insertion of the field nome in PHP, thus: $nome = utf8_encode(strtolower($nome)); When checking how the insert Before inserting, the word is correct, but when I access the…
-
4
votes1
answer746
viewsQ: Loop in json that returns all records
I’m developing a system, in it I do a search with ajax and it returns a json with the bank records, but I couldn’t draw up a loop in the PHP so that the json could return all records. Below follows…
-
3
votes1
answer256
viewsQ: Send id by URL to full Legend
I use Full Calendar to display an agenda on my system, but I’m not able to send a id through the url of the file that mounts the json with the dates, and need this to filter the events that are…
-
0
votes1
answer38
viewsQ: When entering, value is incorrect
When checking the mounted Insert PHP with the form information, I can understand the value of the field data_final is not captured correctly, I would like to know what is wrong, because I believe it…
-
1
votes0
answers100
viewsQ: Ajax/js function does not work
It follows below my code, with the function and the field. When testing does not work anything, I do not know what is wrong. I did this function to check if such a period already exists in the bank.…
-
0
votes1
answer446
viewsQ: SELECT always returns the last record
I’m trying to make it the moment I select an option in a select other fields are filled in using this information. I managed to do this partially, always selected the last record of the table I’m…
-
0
votes1
answer141
viewsQ: Array result returns null
I need it from the option selected on <select>, me check in the bank what is related to this option. I did this from way that follows below, but in part $p_id = $result['p_id'];, no return, I…
-
0
votes2
answers203
viewsQ: Delete button does not work
I created a delete button that sits on the row of each record that I am displaying in a table, but when I click on it and display the delete screen, I realize that the last record of the table is…
-
2
votes1
answer51
viewsQ: Search the bank from option
I need that when selecting an option in a option, a search occurs in the bank without leaving the page and shows what was returned through this search and fill fields with the results. I already…
-
1
votes1
answer471
viewsQ: Prohibit the insertion of repeated data
I need that when typing a text in an input form, it validates right there if there is already this record, that shows the result pro user and does not allow to send the form without changing what is…
-
0
votes1
answer505
viewsQ: Full Calendar does not respect end date
I created an agenda with using Full Calendar, it displays the events, but does not respect the end date, always ends the event a day before, but only in the display. I don’t know if that field…
-
0
votes2
answers185
viewsA: Full Calendar does not run PHP file
I managed to resolve, I changed the connection to the PDO type and the while also, after the events appeared normally through the PHP file. $conexao = new PDO('mysql:host=$host;dbname=$db', '$user',…
-
0
votes2
answers185
viewsQ: Full Calendar does not run PHP file
I created an agenda with fullcalendar using this project website, but when I use PHP to get the events from the database, they are not displayed in the calendar, but if I call a json shows the event…
-
-1
votes1
answer71
viewsQ: Form does not perform update
I created an editing form, where I put it on action the path to the update file and the Submit type button. But I click the button the page is not redirected and there is no update, there is nothing…
phpasked R.Gasparin 467 -
0
votes2
answers341
viewsA: Edit selected record
From this website indicated by @R.Santos, I followed the steps and arrived at the following code: dados.php //(tela que exibe os registros do banco) echo '<a href="edicao.php?id=' . $id .…
-
1
votes2
answers341
viewsQ: Edit selected record
I show records coming from the database in td’s, in each record there is an edit button that opens the edit screen, however I do not know how to display on this screen the data of the registry I…
-
0
votes1
answer18
viewsQ: Data display does not work
I need to display records coming from the bank, I’m doing this through a while and inserting each field into a td, but if I don’t limit the number of records in the select itself, they’re all on the…
-
-1
votes1
answer151
viewsQ: ERROR: Incorrect function
I developed a portal and it works properly on the localhost, but when I went to put it on the air, the connection to the bank stopped working. So when trying to make the connection with the bank it…
-
0
votes6
answers393
viewsA: If it doesn’t work
After the help of @oeslei and @Antonioantunes, I changed the code and it is working. Below is the correct code: <?php $cnpj = $_POST['cnpj']; $senha = $_POST['senha']; $hoje = date('Y-m-d');…
-
0
votes6
answers393
viewsQ: If it doesn’t work
I’m developing a website, in it some users will access and need to the password expires every 30 days. I did that check, but never falls into it, even when the if is true. If anyone has any idea…
-
3
votes1
answer656
viewsQ: Error trying to log in PHP
I created a login basic with php for the site I’m developing, but when trying to log in occurs the following error "invalid username or password", this error is in the code, but I do not understand…
-
11
votes2
answers8954
viewsQ: Calculate distance between two points by latitude and longitude
I need to calculate the distance in kilometer(Km) between two points through their latitude and longitude. I have not found an effective way to do. The latitudes and longitudes I have are formatted…