Posts by GustavoSevero • 2,567 points
212 posts
-
0
votes1
answer66
viewsQ: Error Warning on console
The following warnings are appearing on the console with Chrome: "Uncaught Typeerror: $ is not a Function bootstrap.js:29" "Syntaxerror: Unexpected token [ angular.js:12330" Follows my code:…
-
3
votes2
answers3436
viewsQ: How to mount a JSON return?
I have this code, below, where I manipulate some data. But after, I need to transform into a JSON object, as the example below. <?php function mostraContasEntrada($id_empresa){ $pdo = conectar();…
-
2
votes1
answer447
viewsQ: Problems with Angular ngRoute links
I’m trying to link. I’m working with Angularjs and did the route setup part. I have a views folder with html files. Follows the codes: <html ng-app="fluxo"> <head>…
-
1
votes1
answer23
viewsQ: Insert function is not working
I have the following class in php: <?php class contaEntrada { public $mostraDados; public $insereDados; function conectar(){ $host = "localhost"; $user = "root"; $pass = "root"; $dbname =…
-
0
votes1
answer711
viewsQ: How to SELECT to pick up data in different tables and with different id’s
Has 3 tables On the table entrada has the data: id_entrada, id_empresa, id_categoria and id_subcategory. On the table cat_entradas have: id_categoria and categoria. And on the table sub_cate_entrada…
-
1
votes1
answer1304
viewsQ: How to manipulate data from the database using PDO
I’m starting to use PDO in my PHP projects. When I worked with mysql, without PDO, when I took a query in the BD, I was able to get each data associated to a variable and could do what I wanted with…
-
5
votes2
answers491
viewsQ: I cannot create php class and use PDO connection
I’m creating a class that fetches data from the database for display. For example, one of the functions of the class is to take the date, of a given, in the database and display on the screen. The…
-
6
votes2
answers365
viewsQ: Problems sending data to the Ionic database
I made a web application, with Angularjs and PHP, here on my computer, where I registered users and emails in the database and works perfectly. I’m trying to do the same with Ionic, but when I try…
-
3
votes2
answers824
viewsQ: PDO connection does not give error, nor with dummy bank
I’m starting with PDO. I’m trying to connect with the bank and I can’t. I have the following code $host = "localhost"; $user = "root"; $pass = "root"; $dbname = "angularDB"; try { $pdo = new…
-
1
votes2
answers1346
viewsQ: Editing data with Angular and php
Does anyone know how to select a die and go to an editing screen, using html, Angularjs and php? Example: I have a list of contacts. I want to make a button that saves the id of this contact and…
-
0
votes4
answers1748
viewsA: Return php data to Angularjs
got. The problem is that I was with my angular code as follows: $scope.carregarUsuarios = function () { } When the right thing is var carregarUsuarios = function () { } And as I described above, my…
-
1
votes4
answers1748
viewsQ: Return php data to Angularjs
Good evening, everyone. I’m doing a CRUD with angular and php. I’ve been able to register data in the database, but I’m not able to take this data and display it in html. I think it’s the file,…
-
-1
votes3
answers1211
viewsQ: Data registration with Angularjs and PHP does not work
Hello, I have a form, simple, with 3 fields, name, email and password in HTML and along with an Angularjs code. However, when submitting the form, I get the message that the data sent to the bank,…
-
0
votes3
answers3581
viewsQ: What is the equivalent of mysql_result in mysqli?
How can I make a FOR in php using mysqli? 'Cause I’ve always been able to do that: for($i=0; $i < $qtde; $i++){ $pet_id = **mysql_result**($dadosPets, $i, 'animal_id'); } How do I do the same,…
-
4
votes1
answer5794
viewsQ: Using mysqli to count records
I need to do a log count. I wore: mysql_num_rows($consulta); How do I do the same thing using mysqli? Because I’m doing it this way: $tabela_usuarios = "SELECT * FROM owner WHERE…
-
1
votes3
answers476
viewsQ: Undefined error while reading 'post' property in Angularjs
I have the following code: <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> </head> <body> <form…
-
0
votes1
answer1111
viewsQ: HTTP error 400 - "senderName invalid value" and "Must fit the patern: d+. d{2}2"
I’m having a problem using the Pagseguro v2.5.0 api. I don’t know how to create the sendbox, appID and the following message appears when I send the data to the pagseguro: [HTTP 400] - BAD_REQUEST 0…
apiasked GustavoSevero 2,567 -
-3
votes2
answers193
viewsQ: Insert in Mysql does not run
I’m having problems with SQL when making a small insertion in DB. I have a table with 4 fields: id_match -> int id_usuario1 -> int id_usuario2 -> int situation -> varchar(5) When I do…
-
1
votes3
answers30995
viewsA: Insert date in Mysql via PHP
@Darkjontex, what I always do, which is very simple, is this: //Pegue a data no formato dd/mm/yyyy $data = $_POST['dataDoCampoHTML']; //Exploda a data para entrar no formato aceito pelo DB. $dataP =…
-
1
votes0
answers81
viewsQ: Session variable not being created
I’m creating a redirect, coming from a link of email, for the user to access such link, URL. However, the problem is that I am not being able to set the session to this URL! Can someone help me?…
phpasked GustavoSevero 2,567 -
3
votes3
answers483
viewsQ: redirecting to within site
I have a system, with login and password, that sends notification, by email, to users, when a certain situation occurs. When the user clicks on the email notification link, it is redirected to an…
phpasked GustavoSevero 2,567 -
-1
votes2
answers70
viewsQ: Taking information from a function
I want to save the geographical coordinates of an address in the database. I can do this, but there is a. I have a function that takes an address and returns the geographical coordinates of it. The…
phpasked GustavoSevero 2,567 -
0
votes1
answer2147
viewsQ: Sending link by email with Phpmailer
I’m having a hard time sending one link with references, by email, with Phpmailer. Can someone help me? require 'phpmailer/PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->IsHTML(true);…
-
1
votes0
answers648
viewsQ: Using Facebook Login in PHP
I’m trying to log in with facebook, using SDK 3.2.3. I’m almost there, but the following message appears on the screen: "Warning The parameter app_id is required". Just follow my code: <?php…
-
2
votes2
answers854
viewsQ: Phpmailer shows SMTP error
I am running phpmailer codes and the following error warning appears: Fatal error: Class 'SMTP' not found in public_html/php/phpmailer/class.phpmailer.php on line 1291 Can someone help me?…
-
0
votes1
answer75
viewsQ: Sending email by localhost
I am putting in my system in PHP Phpmail and I want to test. I use the MAMP. Does anyone know which HOST to put in to send email? In this case, the system is running locally, ie localhost.
-
2
votes2
answers439
viewsQ: Converting values for calculation to JQ
How can I convert the value of an input 1,11 for 1.11, so it can be added to other values? This in jQuery. My input is masked for real values.
-
0
votes2
answers837
viewsQ: data registration via ajax
I’m trying to register data by ajax and the data is not going to the BD. I did a test, direct, between html and php and it worked, but html, ajax and php won’t. HTML: <form method="post">…
-
1
votes0
answers74
viewsQ: Access problems in XAMPP
I am trying to open an image . png via url by localhost and the following message appears:
-
0
votes1
answer167
viewsQ: Maintaining input values with Jquery
Good afternoon, On a php page, I have several text input fields. On this page I fill each input with a value, 2,00, 3,00... How do I get these values to stay in the fields, in the inputs, even if I…
-
2
votes3
answers944
viewsQ: Calculus in Javascript
I have two input fields where I type values. I put mask so that when type the value is in the format 0,00. How do I make a simple calculation with values 0.00? Because I have a formula that I passed…
jqueryasked GustavoSevero 2,567 -
0
votes2
answers228
viewsQ: Calculation always active in Jquery
I need the following: I have 3 input fields for values/currency. These values are not populated in sequence, other fields, with other values are populated between these 3 fields. I need to know, how…
-
0
votes3
answers48474
viewsQ: Getting input value with jQuery
I’m not getting the entered value in an input field with jQuery: HTML: <input type="text" id="vendaMediaMensal" name="vendaMediaMensal"> jQuery: var vendaMediaMensal =…
jqueryasked GustavoSevero 2,567 -
2
votes1
answer97
viewsQ: Passing data in javascript
Next, how can I pass data between two files with javascript? Example: Archiv11: <script> var dado = 'dado'; </script> Arquivo2: <script> alert (dado); </script>…
-
1
votes2
answers594
viewsQ: Validating two date fields
I need to check if the user entered the date in two date fields. <input type="text" name="data1"/> <input type="text" name="data2"/> How do we fix this? If I put required in the field,…
-
1
votes2
answers142
viewsQ: Taking data from a url
I have a website url, http://universimmedia.pagesperso-orange.fr/geo/loc.htm, where I place an address and clicking on the 'Search' button the site gives me the coordinates of that address, latitude…
-
0
votes1
answer853
viewsQ: Dynamic maps in Google Maps
I have a system where people put their addresses. I would like to know how to pick up an address and make it appear on the maps. Do you understand? Each person in the system will have a page where a…
-
-3
votes1
answer793
viewsQ: Anyone familiar with the Ionic framework?
Do you know the Ionic framework? It’s similar to Phonegap.
-
0
votes1
answer3084
viewsQ: Error trying to insert SQL SERVER
I created a table in the BD with the following code CREATE TABLE documentosDefesa ( id_documentos_defesa int NOT NULL, id_reclamatoria int NOT NULL, funcao nvarchar(50) NULL ); And now when I try to…
sql-serverasked GustavoSevero 2,567 -
2
votes2
answers511
viewsQ: JSON message does not appear
I have this code in PHP: if($qryInsert == 1){ //echo "Evento criado com sucesso!"; echo json_encode( array('status' => 1, 'msg' => 'Evento criado com sucesso!')); }else{ //echo "Erro ao criar…
-
3
votes1
answer133
viewsQ: AJAX sends information to PHP but fails to insert only one data
Look at my code: HTML: <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script> <script type="text/javascript" src="js/criaEvento.js"></script> <form…
-
4
votes1
answer542
viewsQ: Invalid Colum name
SQL Server is giving me the following warning: "Invalid column name", where the column name has nothing else..…
sql-serverasked GustavoSevero 2,567 -
2
votes1
answer432
viewsQ: Displaying the date in the date field
I’m trying to display the day’s date in the field date: <input type="date" name="dia" />. Being that the date I picked up via JS: var Hoje = new Date(); var data; Hoje.getDate();…
-
1
votes1
answer294
viewsQ: Inserting data into sql server table
I’m trying to insert data into a table: INSERT INTO [RDO].[dbo].[observacaoProtocolos] (id_protocolo, statusObs1, observacao1, statusObs2, observacao2, statusObs3, observacao3, statusObs4,…
sql-serverasked GustavoSevero 2,567 -
0
votes0
answers55
viewsQ: Data update on sqlsrv
Since yesterday I have been having a very strange problem at the time and update data in my BD. I always managed to update data, but I haven’t been able to with this command:…
-
1
votes1
answer400
viewsQ: Problem uploading files
I have a code pad to do upload but every time I try to do the upload appears a message saying "Please send files with the following extensions: jpg, png or gif". I am trying to do the upload file…
-
6
votes2
answers335
viewsQ: Problem retrieving inserted id
I created a register with some 58 data. As I was creating, I was testing and the data was entering the BD, and every time an insertion was made, I took the id of the last data set/group inserted.…
-
1
votes1
answer139
viewsQ: Picks up checkbox values
I need to get more than one checkbox value, if you have more than one value, example: <input type="checkbox" name="combustivel[]" value="Marco"> <input type="checkbox" name="combustivel[]"…
-
2
votes3
answers432
viewsQ: Conditional for verification
I’m Creating a File js with a jquery. In this file I need to make a conditional or several conditional that check a certain amount of numbers. If the variable x is one of the numbers 1,3,5,6,7,9,10,…
-
0
votes2
answers119
viewsQ: Put jQuery function on button
I need to place a function call on submit, check if there is at least one file in the database and if there is no form it is not submitted.