Posts by Zanotta • 314 points
11 posts
-
2
votes4
answers50
viewsA: How to redirect the user to the page they were trying to access before login was requested?
Before redirecting the user to login, create a session with the URL that the user tried to access. After it logs in, check if there is such a redirect session created. If yes, redirect the user to…
-
0
votes3
answers144
viewsA: force ssl with htaccess and angular7
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://example.com/$1 [R=301,L] Change the example domain to yours, and if you use another port other than 80, change it as well.…
-
-1
votes2
answers775
viewsA: 3 forms in a single button
You could send it via Ajax with Jquery and pick up the data via GET (if it doesn’t interfere with your application’s security): var dados =…
-
0
votes2
answers102
viewsA: Select with fields without values
Switch INNER JOIN to LEFT JOIN: SELECT DISTINCT SB1.B1_DESC AS PRODUTO, SUM(SB8.B8_SALDO) AS SALDO, (SC7.C7_QUANT - SC7.C7_QUJE) AS [SALDO DE COMPRAS], SC7.C7_NUM AS PEDIDO, SB1.B1_EMIN AS [SALDO…
-
2
votes2
answers933
viewsA: codeigniter error 3: Undefined variable: alert
Usa flashdata() to create these messages: $this->session->set_flashdata('mensagem', 'Contato enviado com sucesso'); and in the view check by: if( $this->session->flashdata('mensagem') )…
-
-4
votes2
answers1462
viewsQ: Is it possible to register . go domains?
So guys, does anyone know if it’s possible to register something like.go domain.? I looked into it and I couldn’t find anything about it.
-
3
votes5
answers19009
viewsA: How to keep the footer always down there
If you want a simpler solution: html, body { margin:0; padding:0; height:100%; } #wrapper { min-height:100%; position:relative; } #header { padding:10px; background:#5ee; } #content { padding:10px;…
-
1
votes1
answer52
viewsA: Problem with . show()
Change location.pathname for window.location.pathname in your code.
-
2
votes2
answers961
viewsA: Calculate maturity date
SELECT start FROM table WHERE DATE_SUB(start, INTERVAL 30 DAY) < now(); Using the "start" value, it adds 30 real days and takes the records that are LONGER than the date of the script execution.…
-
8
votes3
answers4398
viewsA: How to force load JS and CSS files with each new published version?
Concatene some random number that varies with each upload, at the end of the file extension. EX: style.css? v=1651516151;
-
0
votes2
answers1439
viewsQ: How to export query to CSV with each column in a cell?
Good afternoon guys. I’m already able to export the query to CSV, but I need the value of each column to be in a different cell. EX: Id in cell A, Name in cell B... Any idea?