Posts by Neto Costa • 502 points
23 posts
-
2
votes1
answer38
viewsA: How to know which lines are not in certain groups?
To solve this problem, we can use the EXISTS clause, which according to the documentation: Specifies a sub-sum to be tested for the existence of lines. So, for the example you gave, the query would…
sqlanswered Neto Costa 502 -
1
votes1
answer47
viewsA: Change the visibility of a DIV based on the value of two select using jQuery
According to the jQuery documentation, the function val: Get the current value of the first element in the element set match or define the value of each matched item. So I made a few edits to his…
-
0
votes1
answer261
viewsA: How to Read and Print String with c++ space?
To read and print Strings in C++, you can use the function getline, an example of use (based on your case) would be: // Lendo Strings #include <iostream> #include <string> using…
-
0
votes1
answer63
viewsA: Disable Event-based Inputs Radiobutton Click
Based on code you released on Github, I removed the PHP snippets because they are not replicable for the example, the html snippet for the Form would be as follows: <span…
-
3
votes2
answers98
viewsA: how to leave the result 93.1
One solution is to use String format.: Locale.setDefault(new Locale("pt", "BR")); System.out.println(String.format("Para esta parede você irá precisar de aproximadamente :%.1f",(n1*n2*100) /…
-
0
votes1
answer46
viewsA: Button to insert records into the Database
Change the line: command.Parameters.Add("@DataDeNascimento", SqlDbType.DateTime).Value = dataDeNascimentoDateTimePicker; To: command.Parameters.Add("@DataDeNascimento", SqlDbType.DateTime).Value =…
-
0
votes1
answer321
viewsA: View mysql html data with Javascript
One way to accomplish what you asked would be by using the property Element.innerHTML, in accordance with the documentation: The Element.innerHTML property defines or obtains the HTML syntax…
-
0
votes2
answers385
viewsA: How to call a form from another project in Webforms?
What you have to do is add a reference to your other project, in this case the project without authentication, within the project solution with authentication. You can check instructions step by…
-
2
votes2
answers76
viewsA: Display values in one table but not in the other
To understand more about Joins, I recommend reading this article or this other. Basically, what you need is all the data from one table (Balance Accounts) while you just need to check the other…
-
0
votes2
answers48
viewsA: SQL showing records if they only meet different conditions than usual
To understand more about JOINS, you can read INNER JOIN, LEFT JOIN and RIGHT JOIN clauses in SQL Server or JOINS in SQL. I recommend reading too: MIN(Transact-SQL) and SELECT - GROUP BY -…
-
6
votes2
answers2279
viewsA: How to get only the date month with PHP from the database
If you only want to bring a specific field of a date record, you can use date functions like Day and Month, like explained here. Example SELECT MONTH(coluna_data) FROM suaTabela; /*seleciona apenas…
-
3
votes2
answers257
viewsA: Range of variables in C
This value, 128, refers to the ASCII table (American Standard Code for Information Interchange), as described in this scientific initiation of UNICAMP: When a variable is declared as char type the…
-
0
votes1
answer96
viewsA: Problem to pass a variable from one form to another
The ideal would be to pass the type value when starting the Menu form, so your Login form would call the Menu form and pass as parameter to the constructor the type value, the code would look like…
-
3
votes1
answer109
viewsQ: Update Jeditorpane as a function’s data return - JAVA
Basically, the situation is this, I have a Java application that communicates with an API to update a database. The problem I face is this, I’m doing the process as follows: Application Class…
-
4
votes2
answers11728
viewsA: What characterizes a "basic CRUD" project?
As described in blog article Wordpress Uncomplicated: CRUD is the acronym for the English language expression, Create (Creation), Read (Query), Update (Update) and Delete (Destruction). This acronym…
-
0
votes1
answer87
viewsA: Quotation marks inside quotation marks (html, php)
At the time of setting href, a point is missing after $value['id'], I can initially only notice this error. <button class="btn btn-danger btn" id="excluir" onclick="return toastr.warning('Deseja…
-
0
votes1
answer95
viewsA: When registering user, I need to check in the database if this user already exists and present error message
Try changing the code this way: $login = $_POST['login']; $senha = $_POST['senha']; #Recolhendo os dados do formulário $loginrecolha = mysqli_real_escape_string($con, $login); $senharecolha =…
-
-2
votes1
answer62
viewsA: Handling height in percentage [HTML/CSS]
The upper and lower margins of the blocks are sometimes combined (collapsed/reduced) to a single margin whose size is the largest of the margins (if the elements have the same margin, one of them…
-
2
votes2
answers96
viewsA: Why does Return "terminate" the script even if in a condition?
As used the if and Else conditionals, all possibilities are encompassed, then for sure will fall in the in one of the two, so the Return will be triggered, this for the execution of the function, as…
phpanswered Neto Costa 502 -
0
votes2
answers90
viewsA: Error when registering form in database
The connection should be "mysqli_connect()", then it should be an object of type mysqli.
-
0
votes2
answers127
viewsA: Two fields in a Picker - Xamarin Forms
An option would be to create a property that merges the two contents, for example, the object would have three properties: 1-Code 2-Category 3-Categoriacode, this last one would concatenate the two…
-
4
votes1
answer825
viewsA: What are max-content and min-content width values and how do they work?
I recommend reading this article. First, this image exemplifies well the operation of min and max content for width(English text): Now, a code that produces a result similar to the image, based on…
-
0
votes1
answer62
viewsA: "Table" for queries only - Firebase
I do not know if I understood your doubt well, however, as described in the documentation: https://firebase.google.com/docs/database/security/quickstart?hl=pt-br Database rules require Firebase…