Posts by GustavoSevero • 2,567 points
212 posts
-
0
votes1
answer204
viewsQ: Validating whether or not there is a user with Firebase
I’ve created a registry, web, on Firebase. I can sign up, but if I get a valid email and password, I don’t get redirected into the system. And if I put an email and any password, it does not show…
-
0
votes1
answer2196
viewsQ: How to get the array object data in javascript inside a FOR?
I need to get the data from the object. $scope.salvarHabilidades = function(pro){ var valores = pro.filter(function(o,i){ return o.habilidades == true; }); console.log(valores); var dados = [];…
javascriptasked GustavoSevero 2,567 -
0
votes1
answer521
viewsQ: How to create javascript array object within a FOR?
I need to pass an array object as follows, to the api: [paulo = 1, gustavo = 2, amanda = 3,...] I have the following code: $scope.salvarHabilidades = function(pro){ var valores =…
-
1
votes1
answer1014
viewsQ: Why can’t I use $window.localStorage.setItem() with angular?
After registering, I want to temporarily put some data in localStorage, but I’m not getting. Follows my code: app.controller('cadastroCtrl', ['$scope', '$stateParams', '$http', '$cordovaSQLite',…
angularjsasked GustavoSevero 2,567 -
1
votes1
answer726
viewsQ: How to pass parameters and catch them with angular $state.go?
I have the following code in the controller app.controller('loginCtrl', ['$scope', '$stateParams', '$http', '$cordovaSQLite', '$window', '$state', function ($scope, $stateParams, $http,…
angularjsasked GustavoSevero 2,567 -
3
votes2
answers9898
viewsQ: Error "Content-Type is not allowed by Access-Control-Allow-Headers in preflight Response"
I’m making my api, in php, and I get the following warning Xmlhttprequest cannot load http://vigilantescomunitarios.com/serviapp/api_gustavo/register.php. Request header field Content-Type is not…
-
0
votes1
answer787
viewsQ: How to upload xlsx file with angular and php?
Hello, I am developing a financial system for client companies that I already own. I am using angular and php. In this system, I have a part that needs to import data in excel. I’m having trouble…
-
2
votes1
answer208
viewsQ: Problems using $state.go of the angular
I have the following code: .controller('cadastroCtrl', ['$scope', '$stateParams', '$http', function ($scope, $stateParams, $http, $cordovaSQLite, $window, $state) { $scope.emailCli = [];…
-
1
votes0
answers137
viewsQ: Error generating Signed apk in android studio
When running the command "Cordova build --release android", the following message appears Error: Could not find Gradle wrapper Within Android SDK. Might need to update your Android SDK. Looked here:…
-
2
votes2
answers277
viewsQ: What is this error that appears on the console, rotating angular?
I’m creating an angled web application and can’t make the login screen appear in index.html, out of which an error message appears in the console. Uncaught Error: [$injector:modulerr]…
angularjsasked GustavoSevero 2,567 -
1
votes1
answer546
viewsQ: Angularjs is not working
Why is it that sometimes when we call the angle, it doesn’t work? Check out my HTML <!DOCTYPE html> <html ng-app='weset'> <head> <title>WESET</title> <meta…
angularjsasked GustavoSevero 2,567 -
0
votes0
answers157
viewsQ: How to install sqlsrv driver on Pdo?
How do I install or sqlsrv driver on Pdo? <?php function conectar(){ $pdo = null; try { $opcoes = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION); $pdo = new…
-
0
votes2
answers128
viewsQ: Difficulty accessing url with angular post
I’m passing a url and some data via angular post... However, the following warning appear on Chrome console: Cross origin requests are only supported for Protocol schemes: http, data, Chrome,…
-
0
votes2
answers1510
viewsQ: "No 'Access-Control-Allow-Origin' header is present" cakephp
Good morning, everyone I’m making an application with angular and cakephp. I am trying to make a request for the backend and the following message appears on the console: Xmlhttprequest cannot load…
-
1
votes1
answer305
viewsQ: $Location.path of Angular changed?
Good morning, everyone! I am trying to make a Function with $Location.path('/main'); and when the function, the following message appears on the console: Typeerror: Cannot read Property 'path' of…
-
0
votes0
answers32
viewsQ: How to change database already in use, with data inside?
I have a database with data inside. I need to change the colletion of a certain data from a bank table. How can I do that? The reason is that I’m not able to register accounts with accentuation.…
phpmyadminasked GustavoSevero 2,567 -
2
votes2
answers2026
viewsQ: How to get id to edit data with Angular?
I need to get the account id that is displayed in the html below. And I need to take this id to my backend and bring the dice and edit, but I’m not getting it. Follows my codes: <div…
angularjsasked GustavoSevero 2,567 -
2
votes3
answers710
viewsQ: How to join two array variables into one in php?
Good afternoon I have the following code <?php include_once("con.php"); $pdo = conectar(); $data = file_get_contents("php://input"); $data = json_decode($data); $idempresa = $data->idempresa;…
phpasked GustavoSevero 2,567 -
2
votes1
answer284
viewsQ: How to pick up php data passed by parameter with Angular
I need to take 1 data passed from the angular controller to my php file, as I do? app.controller("EditarPerfilCtrl", function ($scope, $http, $window) { var idempresa =…
-
0
votes0
answers654
viewsQ: Uncaught Exception 'Pdoexception' with message 'SQLSTATE[23000]: Integrity Constraint Violation: 1048
I am trying to make a simple entry in the database, as I have done several times, using PDO and I can’t! What’s wrong? PHP: <?php include_once("con.php"); $pdo = conectar(); $data =…
-
1
votes1
answer311
viewsQ: How to gather data from two queries in a php object?
I’m doing two comic book queries at different tables. With the data of the first query I am taking data in the other, however, I can not join all the data in a json object only. <?php…
-
1
votes1
answer26
viewsQ: Database data comes incomplete
Good afternoon, everyone, I have two data in the database, but doing select only 1 appears, pq? <?php ini_set('display_errors', true); error_reporting(E_ALL); include_once("con.php"); $pdo =…
phpasked GustavoSevero 2,567 -
0
votes1
answer422
viewsQ: How to pick up object in php
Good evening, everyone, I’m trying to pass parameters from my controller to php that searches the database and I’m not getting it. I’m passing the data as json object. controller: var…
-
0
votes1
answer120
viewsQ: How to use Angular Factory with firebase?
Good afternoon, Guys, I’m trying to create a Factory with firebase, to bring the data from it. My controller: app.controller('ListagemCtrl', function($scope, $location, $firebaseObject, $timeout,…
-
2
votes2
answers292
viewsQ: Why doesn’t the data appear on the screen using firebase and angular?
Good afternoon, you guys, Something that should be simple and I can’t. I’m checking my database at firebase, where you have two records stored. I do the search and appear returns the data in the…
-
2
votes4
answers3995
viewsQ: How to make a link button in Angularjs
How to make a link/redirect button in Angularjs? html <button class="btn btn-success" href="go('/cadastro.html')">Cadastra-se</button> config app.config(function($routeProvider,…
angularjsasked GustavoSevero 2,567 -
1
votes0
answers104
viewsQ: How to send messages using Angular and socket.io?
I followed in the footsteps of this video and I was able to make a web messaging app. Now, I’m trying to implement these codes in my Ionic messaging app. But when trying to send a message, this…
-
0
votes0
answers105
viewsQ: Websocket angular and php
Hello, I have a websocket in php and an angular Factory. I need to know, when there is, or does not exist, connection with websocket, in the part of the code send, socket.send(JSON.stringify(data));…
-
1
votes1
answer114
viewsQ: How to format and calculate 1,000,000 in PHP?
Hello, I have values like 1,000,000 that I need to add and then display. I’m doing this: <?php $vlgastoGeralDeFabricacao = str_replace(',', '.', $vlgastoGeralDeFabricacao); $vlDepreciacao =…
phpasked GustavoSevero 2,567 -
3
votes1
answer7674
viewsQ: How to add php values?
Good morning, everyone, I want to add values to a form, but I’m not getting it. I need to make the following calculation: <?php vlMateriaPrima = 3,05; $isumosMateriais = 0,25; $embalagem = 0,50;…
phpasked GustavoSevero 2,567 -
0
votes3
answers85
viewsA: How to hide and then show an article?
You can leave the element hidden as soon as it enters the screen, example: $(".detalhes").hide(); And when you click div list, it displays it: $("#detalhes").show(); Will you want to hide the…
javascriptanswered GustavoSevero 2,567 -
0
votes1
answer6265
viewsQ: What is this net::ERR_NAME_NOT_RESOLVED error in php?
Hello, I am trying to pass parameters to a php file, email and password, for login use by the following url:"http://www.vigilantescomunitarios.com/php/[email protected]&sen=12345" and…
-
5
votes2
answers5475
viewsQ: How to query filter in Firebase?
I’m starting at Firebase and would like to know how to query with filter, example: Select, only people who live in Porto Alegre. Today, what I have is a comic book structure. I have four tables,…
firebaseasked GustavoSevero 2,567 -
-1
votes1
answer310
viewsQ: Messages do not appear on the screen using Angular
I’m finishing a messaging app, however, I’m not able to make the messages appear on the screen. HTML: <div class="card" ng-repeat="mensagem in mensagens"> <div class="item…
-
-3
votes2
answers2961
viewsQ: How to pass data from one php to another without form?
A very simple question, though, I don’t know or remember. How can I send data from one php file to another, tb in php? Not the case of form. php 1: header('Content-Type: text/html; charset=utf-8');…
phpasked GustavoSevero 2,567 -
-1
votes2
answers2566
viewsQ: How to return a JSON in PHP?
I have it: $insereUsuario=$pdo->prepare("INSERT INTO usuarios (idUsuario, idCep, tipoUsuario, nome, usuario, email, senha) VALUES (?, ?, ?, ?, ?, ?, ?)"); $insereUsuario->bindValue(1, NULL);…
-
0
votes1
answer73
viewsQ: Why does Pdo not recognize id?
I’m having a very strange problem. See this message: PHP Fatal error: Uncaught Exception 'Pdoexception' with message 'SQLSTATE[23000]: Integrity Constraint Violation: 1048 Column 'idUsuario' cannot…
phpasked GustavoSevero 2,567 -
0
votes3
answers433
viewsQ: My json returns invalid character in PHP
I need to assemble a JSON, in the PHP, to return data to Angularjs, but one of the Object data from JSON is coming with the letter "á" with another character. How can I correct this? NOTE: The name…
-
0
votes0
answers51
viewsQ: Error in JSON object in php
there was some modification when creating or picking up a JSON object in PHP? I have the following code: Angular: $scope.atualizaUsuario = function(usuario) { $window.localStorage.setItem("nome",…
-
0
votes1
answer236
viewsQ: How to see the amount of results with PDO
Good night, As use, I do to count the amount of results of a select in the database using PDO? <?php ini_set('display_errors', true); error_reporting(E_ALL); header('Access-Control-Allow-Origin:…
-
0
votes1
answer316
viewsQ: How to increase sql file size in phpMyAdmin?
How to increase the size of sql files, for import, in phpMyAdmin, from MAMP?
-
0
votes0
answers520
viewsQ: Difficulty displaying data on the angled screen
Good afternoon, everyone I’m making an app, where, when typing a text, the message should appear on the screen. But something strange happens, only the cards (where the text should be displayed)…
-
0
votes1
answer153
viewsQ: How to do two views in one view with Angularjs?
I have a chat app and the problem I’m having is this: When sending a message, it takes a certain amount of time to be sent and appear on the screen, because it goes to a database, via the php…
-
3
votes2
answers681
viewsQ: How to disable button after sending message?
I have an Ionic app that sends messages. Already helped me, here in the same forum, to make a way that does not allow the user to touch the send button, without having typed anything, so the message…
-
3
votes3
answers671
viewsQ: How to make SELECT in more than one bank table?
I have two tables in the database: zip code and users. Can I do a single query to get fields from both tables? Both have idCep. I want to get the address data of the cep table and the name and user…
-
0
votes1
answer104
viewsQ: Email is not appearing in the field due in Angular
Good afternoon, everyone, I have an app, which, after the registration made it goes to the login screen. However, the email does not appear in the form as it should. login controller:…
angularjsasked GustavoSevero 2,567 -
1
votes2
answers109
viewsQ: What’s wrong with my array in php?
I am trying to assemble an array, in php, that return to my controller, because the return is showing on the 'Undefined' console, why? Controller .controller('usuarioCtrl', function ($scope, $http,…
-
0
votes0
answers97
viewsQ: How to update data in Google Maps
I have an app in Ionic that makes use of google maps and displays information registered by the user, through a form. Every time the user reports new data, these new data should appear on the map.…
-
1
votes2
answers115
viewsQ: How to delete data from google maps
I have an Ionic app that makes use of google maps. In this map I display information that the user provides. For example: The user wants to make a complaint that will appear on the map. However, if…
-
1
votes1
answer153
viewsQ: Problems with android adb
Good morning, everyone I am Mac user and am trying to run my Ionic app on my android device, through the command... Ionic run android --device .. but the following message appears on the terminal.…
ionicasked GustavoSevero 2,567