Posts by Armando Galeano • 61 points
6 posts
-
1
votes1
answer106
viewsA: How to capture the logged in user ID? PHP
You have to select the name of the column that is stored the user ID. $_SESSION['iduser'] = $retorno; So you are getting a table array with all user columns, you need to select the USER ID column…
phpanswered Armando Galeano 61 -
1
votes2
answers503
viewsA: Validate password confirmation
Dude what you can do is check if the two passwords match when the user finishes typing the password confirmation and click off the input. Remembering that you should do this back-end check as well.…
-
0
votes2
answers83
viewsA: Best Pattern to manage React component status with Hooks
Guy with the useState you can do the following. setPersonsState({ ...personsState, persons: [...personsState.persons, {name: "Armando", age: 19}] }) For you to add a user without deleting any state,…
-
0
votes1
answer25
viewsA: Add Divs to a given position with Javascript
Dude if you want to do this just with javascript I would do so... function Adicionar1() { if (!document.querySelector('.topico')) { document.querySelector('#Mais').remove(); //Element <div>…
-
0
votes1
answer38
viewsQ: Print an enabled message on the screen after a validation
I did a validation of email and Cpf to see if they are already registered, is there a better way to write the message in the variable $menssage? Than to do the validation one by one?…
phpasked Armando Galeano 61 -
0
votes2
answers48
viewsQ: Problems in consulting with NOT IN
I have 3 users in the database, and I want to search for all users, except the user 2, then have to return user 1 and 3. In the database returns perfectly, but on the web always returns user 1, and…