Posts by Luís Almeida • 806 points
33 posts
-
0
votes1
answer97
viewsA: Blade view Support
@if (count($records) === 1) I have one record! @elseif (count($records) > 1) I have multiple records! @else I don't have any records! @endif
-
8
votes4
answers121
viewsQ: Should I use two IF’s or an operator?
Best practice for checking two conditions? In the example I’m going to give, are not very long checks but what is the best practice and what is the difference? (It happened to me that I found myself…
-
0
votes1
answer2095
viewsA: Text font size inside a button
Creates a class in CSS. .minhaclass{ font-size: 18px; } Apply it after the classes that are already being called, so it will overwrite. <a class="waves-effect waves-light grey darken-3 btn…
-
1
votes1
answer108
viewsA: How to make edit button work in a modal window?
You have to create/call some action on the EDIT button. You can do this using Javascript. <button type="button" onclick="suafuncaoJS()" class="btn btn-dark">Editar</button> I recommend…
-
4
votes3
answers3810
viewsQ: What is the difference between a View and a Stored Procedure in SQL?
I have come across SQL Views and also stored procedures. I would like to understand better, what is the difference between a view and a stored Procedure and what are its purposes? It would be…
-
0
votes4
answers3077
viewsA: How to prevent refresh after Ubmit on the same page?
No, it is not possible to prevent this refresh by making the form Submit to the page itself. You must perform this request via ajax - stored in the Database but did not return anything to html. So I…
-
1
votes1
answer29
viewsA: Add a label with the amount close to the field
You have to use HTML and CSS to customize the presentation mode. The value to be displayed there, you can insert in HTML but then it would be static. Assuming that this value is dynamic, that is, it…
-
1
votes1
answer137
viewsQ: How do I login to a repository?
I needed to change the password in the bitbucket, so the push and the pull from my local repository no longer work. I authenticated myself via https. What command to use to authenticate me in the…
-
0
votes4
answers72
viewsA: Show login user column sum. error
Do so: $usuario = $_SESSION['usuario']; $sql = $pdo->prepare("SELECT SUM(valor) AS total FROM investimentos WHERE usuario= $usuario");
-
2
votes2
answers985
viewsA: Error Laravel migrate
Search for the file Appserviceprovider.php and add this: Import the Schema. use Illuminate\Support\Facades\Schema; In boot function() leave it so: public function boot() {…
laravelanswered Luís Almeida 806 -
0
votes1
answer48
viewsA: Doubt about SSL certificate
Cause: This is because your certificate points to an address - which is called the Common Name. You can solve it that way: In your case your Common Name address must be www.your.com. To ensure that…
sslanswered Luís Almeida 806 -
1
votes2
answers283
viewsA: Require and include
It works that way: <?php include_once "a.php"; // vai carregar o ficheiro a.php include_once "A.php"; // vai carregar o ficheiro a.php novamente! (só no PHP4) ?> This behavior has changed in…
-
0
votes2
answers514
viewsA: Disable calendar in mobile date field
You can do it like this: CSS input::-webkit-calendar-picker-indicator{ display: none; } input[type="date"]::-webkit-input-placeholder{ visibility: hidden !important; } Using jQuery:…
-
0
votes3
answers3053
viewsA: Inserting current date in php
You can use this: date('Y-m-d H:i:s');
-
0
votes0
answers40
viewsQ: What is a tuple for and how does it work in python?
What is the ultimate goal of using a tuple? I already know the difference between a tuple and a list. I want to understand how the tuple works and what is its true purpose at the level of use.…
pythonasked Luís Almeida 806 -
0
votes1
answer66
viewsA: How to delete the view Cart button on the cart submenu (see image) -woocomerce
Your link is not available. However I suggest you do the following. Make an "Inspect element" on this button and take something that identifies it - id or class. Then apply a CSS in the option to…
-
-1
votes2
answers184
viewsA: Open window and automatically click somewhere
You need to be more specific, however one possible way is this. <a href="#seulinkdoyoutubeaqui" target="_blank">Meu Canal</a>
-
0
votes3
answers104
viewsA: PHP variable title
<?php include 'conta/config.php'; $codigo = $_GET["id"]; //echo $id; //exit; $titulo = "SELECT titulo FROM tbl_criticas WHERE id = $codigo;"; // $connection é a…
-
-1
votes2
answers889
viewsA: Change the font in wordpress.com via css
No need to change your font via CSS. A possible solution is to use a plugin. You can try this: https://pt.wordpress.org/plugins/use-any-font/…
-
1
votes3
answers6155
viewsA: Code to send email message by Send button
You can use it like this: <?php //if "email" variable is filled out, send email if (isset($_REQUEST['email'])) { //Email information $admin_email = "[email protected]"; $email =…
-
23
votes2
answers8678
viewsQ: What is NPM and Node?
The title of the question says it all. There are many articles about it, but in a clear and beginner way, what is NPM and what does it do? Like Node? What they contribute to the construction of…
-
0
votes1
answer91
viewsA: Java basic script
I don’t know if I understand your question very well, but if it’s what I understand you can do it this way: document.getElementById("btn-calcular").onclick = function(){ var valorA =…
javascriptanswered Luís Almeida 806 -
0
votes2
answers868
viewsA: Is there a way to open an HTML page within a modal? How?
I think this is not the best solution, but here it goes. However I advise you to search for a solution using jQuery <iframe src="http://www.w3schools.com/"> <p>Your browser does not…
-
3
votes1
answer431
viewsQ: How to create validation to ask if the user really wants to leave the page?
I have a tab where the user will edit fields that are in a form. This data comes from the database. The user can edit them, however, in the end he can write (ie will write/update in the database) or…
-
0
votes1
answer121
viewsQ: How to modify CSS inline after page loading?
Good, I’m doing a database query, where there is a field that has html content. Inside this content is a table, which has some CSS applied inline with a width defined in px. I need to change the…
-
3
votes2
answers644
viewsA: Error in select with PHP + Mysqli
Your query is wrong because you are not comparing $code with any value. Notice: $sql = "SELECT * FROM filhotes WHERE id_filhotes = '$codigo'; id_puppies is the primary key of the puppies table.. I…
-
0
votes1
answer35
viewsA: How to edit project online on a server?
You can use phpstorm or an IDE that allows ftp configuration. Another way is to access files by ftp and edit. You can use Filezilla to hit the server via FTP, then right click on the file and…
-
2
votes1
answer62
viewsA: How do I connect php to the database of this registry?
You have to send this form to a page to process the data, make the query to the database and then establish the registration. <form action="cadastro.php" name="meuForm" method="POST"> ...seu…
-
3
votes1
answer30
views -
1
votes1
answer644
viewsA: Problems with HTML images sent to email
Check where you are fetching the images. If these images are available externally... Images to be accessible must be somewhere available on the internet. example: ftp... Put it like this: <table…
-
0
votes1
answer89
viewsA: Product Table Database (problem with product size)
You have to create a new table: tbl_sizes cod_size (PK) - primary key product code (FK) - foreign key product size The relationship between them shall be N:N.…
relational-modelanswered Luís Almeida 806 -
-1
votes2
answers123
viewsA: Problem with responsive div with 1920px resolution
Try it like this: #menuEmpresa { position: absolute; margin-top: -20px; background-color: #f5f5f5; **width: 100%;** min-height: 400px; margin: 0 auto; } If not, try this: #menuEmpresa { margin-top:…
-
1
votes4
answers176
viewsA: Do not show "overflow" arrows
You can try it here: ::-webkit-scrollbar { width: 0px; } Apply this to your div’s td. Good luck.