Posts by Lucas Henrique • 1,056 points
21 posts
-
0
votes1
answer149
viewsQ: Rest API Django does not work
I have a problem in Python/Django. The tables school and school_application_info are related. However, there is no record of any school_id in school_application_info. So I added null=True,…
-
2
votes1
answer404
viewsA: Dynamic variable in Angularjs
Solved: <tr ng-repeat="data in vm.data.data track by $index"> <td class="center" ng-repeat="field in vm.data.field track by $index"> {{data[field]}} </td> </tr>…
angularjsanswered Lucas Henrique 1,056 -
0
votes1
answer404
viewsQ: Dynamic variable in Angularjs
I want to generate a variable dynamically in the Angularjs being an ng-repeat inside the other as below: <tr ng-repeat="data in vm.data.data track by $index"> <td class="center"…
angularjsasked Lucas Henrique 1,056 -
4
votes3
answers537
viewsA: Run script every 1000 queried records
I put a counter in and changed it to mysql_fetch_array <?php // Conectando com o banco de dados require_once("../conecta.php"); // Chama classe para capturar os registros…
phpanswered Lucas Henrique 1,056 -
4
votes2
answers6646
viewsQ: Subtraction of dates and return the number of years, months and days
Through two input='text' I set the starting date and the final date. By Javascript I want to subtract the final date by the initial one and return the number of years, months and days. I’m using the…
-
2
votes3
answers15493
viewsA: How to add the results of an array brought from the PHP database?
Place the respective field 'algo': <?php $searc= mysql_query ("SELECT algo FROM lugar") or die (mysql_error()); $soma_das_visu = 0; while ($rows = mysql_fetch_array($searc)) { $soma_das_visu +=…
-
18
votes4
answers28026
viewsA: Accent in mysql select displaying question sign " "
Use the PHP function utf8_encode Would look like this: echo utf8_encode($exibe['recadao_mensagem']); Note: Check that the IDE you use is set to UTF-8 default.…
-
6
votes2
answers19115
viewsA: Mysql Workbench Import and Export
You can export your bank on the Workbench at Management-> Data Export. Select the database, choose the directory and file name and click Start Export. An sql file will be generated. On another…
-
9
votes7
answers3901
viewsA: What does incrementing mean?
According to the dictionary, INCREMENT is: development augmentation act of growing up raising In programming the meaning is the same, we will increase something already existing. And there is also…
terminologyanswered Lucas Henrique 1,056 -
4
votes4
answers33008
viewsA: How to create a raise image effect by hovering the mouse over
If what you want is an effect on the image equal to of this example of Tableless, you need to use CSS Transition and CSS Animation. HTML <a href="#"> <img class="asterisco"…
cssanswered Lucas Henrique 1,056 -
0
votes2
answers348
viewsA: Is there any way to search (FULLTEXT) in a specific field in Mongodb?
I don’t have good knowledge in Mongodb, but this link will help you in detail. Full text search in Mongodb…
mongodbanswered Lucas Henrique 1,056 -
2
votes3
answers8261
viewsA: How to recover the ID of the last record inserted in the bank?
DB::Query('SELECT LAST_INSERT_ID()'); According to this post here: Raw queries last_insert_id…
-
5
votes4
answers3355
viewsA: PHP login with permission levels
Your SELECT returns the fields Usuario, Senha, however you try to catch $row["Rank"]. Change the SELECT to: $SQL = mysql_query("SELECT Usuario, Senha, Rank FROM utilizadores WHERE…
-
2
votes3
answers4519
viewsA: How to display part of a text stored in a TEXT column?
You can use the substr() function as follows: string substr ( string $string , int $start [, int $length ] ) Source: Substr function (php.net) It would look like this to show the first 30…
-
3
votes1
answer1926
viewsA: validate php image size
You can use the function getimagesize($imagem): <?php $imagem = 'php-imagem.jpg'; // Captura o tamanho da imagem e guarda nas variáveis list($largura, $altura) = getimagesize($imagem); // Faz a…
phpanswered Lucas Henrique 1,056 -
10
votes3
answers10198
viewsA: What are lexical scope and dynamic scope and what are their main differences?
What Means Scope of a Variable? The scope of a variable represents the area of the program where it is visible. A variable is visible in a command if it can be referenced in that command. A variable…
answered Lucas Henrique 1,056 -
2
votes3
answers161
viewsA: Plicas and IF php problem
The errors are in the quotation marks and in the HTML code attached to PHP. Try this way: echo "<div id='tabs-2'> <p>Ficha de Aptidão Médica Validade: "; if ($exibe['MedicaValidade']) {…
phpanswered Lucas Henrique 1,056 -
0
votes3
answers5992
viewsA: submit form from a select
The action of your form must be submitted to the same page, so you can get the value "2" in the $_POST['select_cars']. <form action="mesma_pagina.php" method="post" name="menuForm">…
-
4
votes2
answers6430
viewsA: Increase number of rows returned by select group in Mysql
Mysql Workbench has a setting that by default is set to return Limit Rows Count = 1000. To change, on Workbench and on your server, click Edit > Preferences > SQL Queries Tab > In the…
-
7
votes7
answers11287
viewsA: Is it wrong to write byte of images into the database?
You can record the images in the database without problem. Here in the service we have a database of 1.5T, with 95% of this being images. But it is necessary to verify the reason for this decision.…
-
5
votes3
answers468
viewsA: Include/Require 'file.php' or Include/Require('file.php')
According to the PHP manual, parentheses are not needed around your argument, but be careful when comparing the return value. As the cited example: // Não vai funcionar, verificando se existe //…