Posts by Gabriel • 355 points
35 posts
-
1
votes1
answer3336
viewsQ: Vuejs - Popular select with API data
I am having problems to popular a select with the data I have as return of an API. I am using Vue. Follows codes: My HTML is like this: <select> <option value="" disabled…
-
0
votes0
answers673
viewsQ: Sharing Facebook API
I have a responsive system, where I created a webview for android and Ios with this system to use it as an application. So far ok. So I implemented a Facebook share button as per Facebook…
-
1
votes1
answer1012
viewsQ: Push notification no webview - Android / iOS
I have an app running a webview. It’s a web system and the webview with the app. In the system, it has certain actions that the system sends push notification to the user. I made the integration…
-
0
votes1
answer325
viewsQ: Input type file in webview - Xcode
I created a webview of a page that contains an input type file to upload photos, however, in Iphone webview, when I click the button to upload the photo, it opens a menu only with the option of…
-
0
votes0
answers46
viewsQ: Pdostatement::execute(): SQLSTATE[HY093]: Invalid Parameter number: Parameter was not defined
I have a problem making an Insert in the base using PDO. PHP shows me this error. Searching, I saw that this error refers to the number of parameters that do not hit bindValues, for example: INSERT…
-
0
votes1
answer416
viewsQ: Show JSON result via Ajax
I don’t have much knowledge in javascript, but I need to integrate a payment API. I’ve never performed integrations with an API before. Following the documentation I saw you need to first generate a…
-
0
votes1
answer220
viewsQ: Validate form with equal name[] and id
I have a dynamic form, where can appear several textarea, and by default, these textarea has the same id and the same name, however, the name is being sent as array (name="nomecampo[]"). I wanted to…
-
0
votes2
answers1203
viewsA: Form validation with two buttons
Thank you all for your help! I solved it as follows: <!-- Botões --> <button type="button" name="btnComValidacao" value="1" onclick="checa_formulario()"> <button type="submit"…
-
1
votes2
answers1203
viewsQ: Form validation with two buttons
I’m having trouble validating a form, but the way I’m trying I don’t know if it’s possible, someone can give me a strength? I have a form with two buttons submit. And on the tag form I’m putting the…
-
1
votes2
answers10476
viewsQ: Pick up value or button name with Jquery
Does anyone know how I could catch the value of a button using Jquery? What I want to do is use this value in a textarea, so it doesn’t necessarily have to be the value, the name would also serve. I…
-
0
votes2
answers684
viewsQ: Pass input values to PHP
I have two inputs, one filled automatically by a PHP script, and the other the user enters the value, and a third input to calculate the subtraction or addition of the first two inputs. I created…
-
0
votes3
answers2794
viewsQ: Sum values of two inputs and show in third
I’m a beginner in jQuery and I’m not being able to add up the values of two different inputs and show in a third input the result without refreshing the screen. Could someone help me? These are the…
-
0
votes2
answers2339
viewsQ: Clear selected option from a select with jQuery
I am with a form with radio Buttons, and when I select the radio Buttons it will appear/ hiding the fields I want. So far so great, but if I select an option on and then change radio button, that…
-
1
votes1
answer526
viewsA: Hide select field according to radio button
The problem was in select <select class="form-control col-md-7 col-xs-12 select2_single forma" tabindex="-1" id="select-custom-field2" name="custom_field[account][2]"> Because of the for of…
-
0
votes1
answer526
viewsQ: Hide select field according to radio button
I am trying to hide select fields according to the option chosen in the radio button I can hide the inputs, but the select fields I’m not getting, someone could help me? Form: <div…
-
0
votes1
answer59
views -
0
votes1
answer674
viewsQ: Problem with Insert using mysql_query()
I’m working on an old system, in which makes the connection to the bank still with mysql_query. I used very little mysql_query and the last time I used it a long time ago, I’m more used to PDO. I’m…
-
2
votes2
answers110
viewsQ: Doubt with loop of repetition
I am doing a series of exercises in PHP for practice. And I came across a question regarding the loop of repetition. To explain better I will put the statement of the exercise here: Efetue um…
-
1
votes2
answers1288
viewsQ: Turn string into integer in PHP
I have two classes communicating. One of them returns a getter with the month typed in the form, and the other class receives this getter within the cal_days_in_month() function. The problem is that…
-
2
votes4
answers1260
viewsQ: Footer always at the bottom of the page
I want to know how to leave the footer always at the bottom of the screen, even on small screens. I’m wearing a bootstrap. This way: I want to leave the footer always at the end of the page…
-
0
votes1
answer346
viewsQ: Return data from a class to index
I’m putting it into practice PHP Object-oriented and I’m developing a CRUD of students. I have a class to count the number of students in the bank. And I wanted to take the return of the function…
-
1
votes2
answers868
viewsQ: Execute() from PDO returns false
I am practicing object-oriented PHP (POO) and I am developing a system for enrolling students, but when I try to register a student or execute() returns false and I couldn’t identify the problem.…
-
0
votes1
answer347
viewsQ: Carousel Boostrap
Hello. I’m trying for the first time to make a Bootstrap. The Carousel is only in the first image, it does not change automatically nor when I click on the side buttons. HTML: <!DOCTYPE html>…
-
7
votes2
answers56156
viewsQ: How to center all content of a div - Bootstrap
Hello. I am learning how to use the bootstrap. In my studies I had a question. If there’s any way to centralize the entire contents of a div. I have sample codes... <!DOCTYPE html>…
-
0
votes2
answers2765
viewsQ: How to start closed Accordion
Hello, I have on my page an accordion, it is working perfectly, however, when starts the page it is already open. What I want is for it to come closed, has like? HTML: <div class="bs-example">…
-
0
votes0
answers59
viewsQ: Help with responsive bootstrap
I’m developing a website with bootstrap. The site is already ready for desktop, but I’m having a hard time making it responsive. On the site I have several Ivs, one below the other. When I decrease…
-
-1
votes1
answer326
viewsQ: Help with PDO (PREPARE)
Hello. I am trying to make a CRUD using PHP OO. But when I run, I have an error in the preparation of the PDO class. I have only the bank registration code and the bank connection code for now:…
-
1
votes1
answer307
viewsQ: Help with login system
I’m setting up a login system. But I can’t validate the password entered. When I try this way it accuses wrong login/password. But I’ve made sure, the login and password are correct: <?php…
-
2
votes1
answer288
viewsQ: Problem with login system - array
Hello. I am creating a login system for study purposes. I identified in the file that is not populating the array with the database information... and yes, I have already made sure that the email…
-
3
votes1
answer774
viewsQ: CRUD PHP No update, no error
I’m having problems when I try to run an UPDATE on my system in PHP + Mysql. I have the file code edit: <?php require_once 'init.php'; // resgata os valores do formulario $nome =…
-
3
votes1
answer510
views -
0
votes1
answer86
viewsA: Help with Mysql connection
Thank you for your attention @Miguel Problem solved. HTML was wrong. Now it looks like this: <?php require_once 'core/init.php'; // abre a conexão $pdo = db_connect(); // SQL para contar o total…
-
-2
votes1
answer86
viewsQ: Help with Mysql connection
I’m creating a CRUD system for practices, and my code is making a mistake in mine prepare(). Index.php <?php require_once 'core/init.php'; // Abre a conexao com o banco de dados $pdo =…
-
0
votes1
answer45
viewsQ: PDO help using Mysql
I’m having trouble connecting the database using PDO, use Mysql. when executing the connection with the bank appear the following error messages: Fatal error: Uncaught Exception 'Pdoexception' with…
-
1
votes1
answer42
viewsQ: Help with Web Form Update
I am developing a CRUD system, and am having problems updating registered users. The bad thing is that my browser shows no errors. The problem is that when I edit in some field, for example, email,…