Posts by Bruno Inácio • 85 points
16 posts
-
0
votes1
answer49
viewsA: How does this algorithm look for the smallest value of an array?
Yes, the algorithm is ordering the array. The logic is: Sort function has a for that runs through each position of the original array; For each position is called the searchMenor function that…
-
0
votes1
answer75
viewsQ: Problem using Identity in API ASP . NET Core
Good afternoon, I’m trying to use Identity in my API, but I have some error that I believe is dependency injection. I made all the necessary configuration, connected with the bank, managed the…
-
0
votes1
answer65
viewsA: I have class definition but the object coming from JSON does not keep the methods
Try this way: export class Pessoa { id: number; nome: string; raca: Raca; constructor(data?){ this.id = data.id ? data.id : null; this.nome = data.nome ? data.nome : null; this.raca = data.raca ?…
-
0
votes1
answer282
viewsQ: ngModel inside ngFor - Angular/Ionic
I try to create a test with several questions and each question has 4 answers, my logic is, the first ngFor is the number of questions and the second is your answers. My problem is that when I type…
-
0
votes1
answer25
viewsQ: Error while consuming API on Android
I’m trying to consume an API on Android, but I’m not getting it. Debugging looks like it cannot exit Asynctask and does not return the value to where it is calling the method. It can read the data…
-
1
votes2
answers88
viewsQ: Foreign key in Webapi with dotnet core
Next I am creating a webapi (I am using the Entity Framework) with two classes, Course and Discipline, where the discipline has the Id of a course, I created as follows: public class Curso { public…
-
0
votes2
answers937
viewsA: View and modify items in the database with php
You can create a php file with the code below: <?php include("conexaoMysql.php"); class Result{ public $titulo; public $adscode; } function getResultado($conn){ $sqlf = " SELECT titulo,adscode…
-
1
votes1
answer99
viewsQ: How to capture exceptions released by the Insert() method?
I am using Sqlite for a local bank in an Android application, my problem is that I am unable to handle the integrity restriction exceptions. I have a table where the two fields are PK, that is,…
-
1
votes2
answers2528
viewsQ: Find Sqlite Database on Android
Next, I’m creating an application for Android, where I use a local Sqlite bank, never gave any kind of problem of registration or database query, so I never had to take the bank direct in the…
-
1
votes0
answers180
viewsQ: Difficulty listing Sqlite result in Listview Android
I’m creating an application to train mobile development, I’m doing for Android in Visual Studio, using Xamarin. I’m having difficulty listing a result of Sqlite. I created two Activity, one to…
-
0
votes1
answer730
viewsQ: Pass object by Ajax
I would like to know how to get through an ajax request, bring to my site a list of elements, where these elements are lines of an sql query. For example, I have an employee chart. In the form, when…
-
3
votes1
answer135
viewsQ: Problems with Ajax
I’m making a website that has requests ajax and login area. The problem is that when I create a form within a modal in bootstrap for the user to log in, my requests ajax stop working. Form code…
-
0
votes1
answer68
viewsQ: Problems with using Ajax request
When I try to make a request to return an sql query to the form fields it returns only the first row of the table, how can I change my code to fetch all rows: select code: <?php class Medico {…
-
0
votes0
answers299
viewsQ: Login to bootstrap modal
I created a login button in the site navbar, when the user clicks opens a modal with the login form. In the navbar php file I am calling the file "validaLogin.php" to check the user data and store…
-
0
votes3
answers2563
viewsA: Connection to sql database on multiple php pages
It follows code from the page "validaLogin.php". <?php include("conexaoMysql.php"); session_start(); function filtraEntradaV($dado){ $dado = trim($dado); $dado = stripslashes($dado); $dado =…
-
0
votes3
answers2563
viewsQ: Connection to sql database on multiple php pages
I am creating a site where several pages need connection to the database to perform their operations, for example, I made a login system, so the user clicks 'login' opens a modal in bootstrap to…