Posts by Rafael S. • 119 points
11 posts
-
2
votes1
answer530
viewsA: Force https, www and bar at the end of the URL with . htaccess
With some help I managed to come up with a solution to what I wanted in the question. I’m answering here in case anyone has a similar need. RewriteEngine on # Adicionar barra no final da URL, caso…
-
-1
votes1
answer530
viewsQ: Force https, www and bar at the end of the URL with . htaccess
Good afternoon Personal. I’m trying to get . htaccess to force three things. Always access with https, www before the domain and a bar at the end of the URL. Always following this pattern:…
-
0
votes1
answer96
viewsQ: Multiple COUNT() in a single query
Good morning, I have the following table: +------------+--------------+------+-----+----------------+ | Field | Type | Null | Key | Extra |…
-
0
votes1
answer30
viewsA: Columns of a table if overwriting html
You can add this CSS to solve this problem: .table { table-layout:fixed; width: 100%; } .table td { word-wrap:break-word; }
-
-2
votes1
answer107
viewsQ: Is it worth using Bootstrap with Angular 8?
Good night, I recently started studying Angular 8. My contact with Angular until then was practically 0. Today I came across a question. Most of the time I read about using jQuery with Angular,…
-
1
votes2
answers123
viewsA: Concatenate variable with another PHP variable
If I’m not mistaken you can do it: ${'tubo_' . $i} Leaving your code that way: extract($_POST); $qtdModelos = (count($_POST)) / 2; for ($i=0; $i < $qtdModelos ; $i++) { $arrayTubo[] =…
-
-1
votes5
answers431
viewsA: Go to certain link depending on the page
In the condition of your if/Else you are always assigning a value instead of making a comparison. For example, where is: if ( url = 'pagina.html' ) should be: if ( url == 'página.html' ) Moreover,…
-
1
votes3
answers83
viewsA: Enable button only when two selects are different from 0
You can try this way below, when there is a change in one of the two, it checks whether the value of both fields has changed or not: $("#select-1, #select-2").change(function(){ if(…
-
0
votes2
answers501
viewsQ: Create array/list with indexes
Good morning guys, I started learning Python a few days ago and, doing some tests with lists around here I got some questions. 1 - In PHP I can create an array by defining the indexes of its values:…
-
0
votes2
answers40
viewsA: Logo is not positioned correctly on the mobile
Good afternoon, I did a test setting max-width and it seems to have worked the way you’d like it to. <a class="navbar-brand page-scroll;" href="#page-top" style="max-width: 260px;"> <img…
-
3
votes1
answer66
viewsQ: Incomplete sum with JOINS in Mysql
I’ve had a doubt for a few days and I can’t find a solution. I own the tables: swing +------------+---------+------------+----------+ | id_balanco | id_loja | data | dinheiro |…