Posts by Thalles Rangel • 316 points
19 posts
-
0
votes1
answer33
viewsA: Modify htacess to allow download of xml files
I believe the problem is not in . htacess but in the absolute URL for your backup.xml access. Since you use xampp, it is interesting to create a Gobal variable called $url that receives the address…
-
0
votes1
answer33
viewsA: PDO(prepare) analyzes number of characters?
Varchar by default has the variable value, i.e., occupying only that which is inserted. As you can see, the corresponding number within varchar(n) is the amount of characters supported, it is…
-
0
votes1
answer29
viewsA: Line breaking problem in bootstrap
To have two lines it is necessary that you the Row class, I will give a practical example: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta…
-
1
votes1
answer41
viewsA: Mysql connects but does not display keys
First point to note is that the mysql driver is obsolete, the correct is to use mysqli or PDO, I will show you a PDO connection, in your file php connection. place: try { $conexao = new…
-
0
votes1
answer16
viewsA: Foreach in the FPDI repeats the data in the same place
Solution: $pdf->SetXY(12, 25 + ($pdf->getY())); $pdf->Cell(5,0,$item['titulo_vacina'],0,1,"C"); $pdf->SetXY(68, ($pdf->getY()));…
-
0
votes1
answer16
viewsQ: Foreach in the FPDI repeats the data in the same place
I dynamically send to this file via controller the data in an array called $vaccines, I am using Import Autoload for this reason. It turns out that the information is being printed in the same…
-
0
votes1
answer72
viewsA: SQL code with php PDO bindValue returns a simple quotation marks inside the IN in SQL
To solve, I just added inside the house in the implode ex: IN(".implode(',', $objClass->getMotorista() ).") The reason is that bindValue automatically inserts a single quote string between the…
-
-2
votes1
answer72
viewsQ: SQL code with php PDO bindValue returns a simple quotation marks inside the IN in SQL
Next, I am developing a fuel system, specifically in the part of filters for generating a custom report it returns me an IN('1,2,3') with simple quotes It all starts in the form, in which I have a…
-
0
votes1
answer19
viewsA: Do not allow moving when there is only one bxSlider.js image
The solution was this, where I check the amount of images and create a ternary operator according to the result, enabling or not the touch: $(document).ready(function(){ $('.slider').bxSlider({…
-
-1
votes1
answer19
viewsQ: Do not allow moving when there is only one bxSlider.js image
I am using bxslider and rodo perfectly the following code: <script> $(document).ready(function(){ $('.slider').bxSlider({ auto: true }); }); </script> Which results in card drive.. I…
-
0
votes1
answer30
viewsQ: How to use the image generated in html on another page
I’m converting a string to image to be used in a bank account. In view of this need, I have as an example the following variable: $string = 10499.10657 01500.110045 00002.710038 9 79320000000000…
phpasked Thalles Rangel 316 -
0
votes2
answers67
viewsQ: Unifying values of an array
Performing a query in the database returns these values in an array called $arrayExcluir and I need these values to be transferred to a single array (without subdivision) for me to be able to use…
phpasked Thalles Rangel 316 -
2
votes1
answer548
viewsA: How do ORDER BY DESC work in Mysql?
You need to move "LIMIT 1" to the final of query. Follow an example from W3 School : https://www.w3schools.com/sql/trymysql.asp?filename=trysql_select_limit SQL: SELECT NOME FROM PESSOA WHERE…
-
-1
votes2
answers114
viewsA: mysqli_connect does not connect
Refactored code for a better understanding, using PDO as well as fault identification through the getMessage method(); <?php $dsn = "mysql:dbname=db_sistema;host=localhost"; $dbuser = "root";…
-
1
votes1
answer29
viewsA: Image does not rotate
Set your CSS to: #tamanho{ height: 100%; width: 100%; } and its img tag with the id="tamanho": <img id="tamanho" src="https://via.placeholder.com/300" style="width:100%; height:300px;"…
-
0
votes2
answers5270
viewsA: Background image does not appear in div without content
Inside the head, I put the style tag where all the CSS is configuring the image. The tag div put a class="image" that is being used within the style in which the size and width is being set…
-
0
votes1
answer39
viewsA: Checking the existence of a file
In my research, I have observed that there is the following possibility: File arquivo = new File("CAMINHO DO ARQUIVO.EXTENSÃO"); if(arquivo.exists()){ //O ARQUIVO EXISTE - RETORNA TRUE }else{ //O…
-
5
votes1
answer389
viewsA: Change the text color of an iframe
The function of iframe is to open an external document on your web page, either localhost or external. Some javascript solutions can help you do what you want, but only if it’s a document on the…
-
4
votes3
answers4831
viewsA: How to center this image with Bootstrap
Use in the mx-auto text-center class that will center on the screen. Note: I put a new class in the image to make it responsive: img-Responsive. Follow the code: <div class="container">…