Posts by Inácio Régis • 294 points
8 posts
-
1
votes1
answer179
viewsA: Adding +x to each record returned in a SELECT
Friend, if I understood your intention correctly, I wouldn’t need PHP intervention to calculate the score. You can perform the entire calculation on the database side. Follow the corresponding…
-
3
votes1
answer52
viewsA: Doubt regarding the MVC
Friend, I will try to describe in a simple and objective way. Your first example is more correct in my opinion. In the basic standard of MVC controller has the function of being the "dude"…
-
3
votes1
answer1405
viewsA: Place a button next to the input
Friend, the problem in your case is that the second input is inside the div with the class form-Row (<div class="form-row">) . Just insert a div Row and creating divisions in columns as in the…
-
1
votes1
answer45
viewsA: Error - Select with SUM
Friend, if I understand what you want, I believe that grouping by the period you get the sum of the values of the boletos as you want, follows the code: SELECT (SUM(valor_boleto)+5000) as soma,…
mysqlanswered Inácio Régis 294 -
0
votes3
answers270
viewsA: variable interval php time
To make the range dynamic just use the variable with only the amount of minutes, this way: $int ="30";// variavel que define o intervalo em minutos And in your For, you should use the variable $int…
phpanswered Inácio Régis 294 -
0
votes1
answer556
viewsA: Domdocument::loadHTML() Error
Following the @bfavaretto tip, try doing it this way: Note: If you have already done this test, please post the result, ok? //Insira esta linha acima da instância do DOMDocument // -- habilitar o…
-
2
votes2
answers122
viewsA: Get higher and lower id with status = 1
You don’t need to assign this to php as it would be an unnecessary job. To get only the sorted number with the highest id just run sql using the MAX(), in this way: SELECT numero_sorteado, MAX(id)…
-
0
votes2
answers842
viewsA: Error: No supported Encrypter found. The Cipher and / or key length are invalid
First of all, you must generate your APP_KEY: php artisan key:generate If it’s still not working, check the file config/app.php if it is defined as: 'cipher' => 'AES-256-CBC' What if the file…