Posts by Arthur Oliveira • 147 points
19 posts
-
0
votes0
answers15
viewsQ: Error while using Raw from typeorm postgres
all right? I am having a problem in my application, I am using postgres with typeorm and when I try to use the find method with a Raw on Where, it presents the following error: "error": "column…
-
0
votes1
answer63
viewsQ: A table just to store images or split by types?
I want to register users, where they should put their profile photo and inside the program, store other images, I better make a table only for all photos or split for each type? I saw some places…
-
0
votes0
answers195
viewsQ: Tooltip when mouse over map
I’m trying to make a tooltip appear by hovering the mouse over a part of an image, but it’s not working, I tried it in two ways: The first was to put title in the image map, it appears the tooltip,…
-
0
votes0
answers67
viewsQ: Registration using PDO, error 22527?
I have this PHP code below that will be executed after the form Submit to register in the database. If you go through validation, a new user will be created and hashed and then entered into the…
-
2
votes0
answers128
viewsQ: Keep selected multiselect values when refreshing the page?
Hello, I have the code below which is a multiselect by category. What happens is the following, when the user ceases to fill in a mandatory data, the page is reloaded and the message appears telling…
-
0
votes1
answer495
viewsQ: Change the visibility of an INPUT with PHP?
Hello, I have the following code below, in it a Javascript function makes that when selected certain value, the tag display inputis changed, leaving it visible. It also has a PHP code, so that when…
-
-2
votes2
answers297
viewsQ: Mysqli_fetch_array in Locaweb, error logging in!
Hello, I have the following code: <?php session_start(); require_once('conecta.php'); $email = sha1($_POST['email']); $senha = $_POST['senha']; $sql = "SELECT * FROM dados WHERE email = '$email'…
-
0
votes1
answer234
viewsQ: Email as Primary key
I created a database, and in the courses I did we always used id as Primary key,has problem using the email as the primary key, because that way would prevent the registration of a similar email!…
databaseasked Arthur Oliveira 147 -
0
votes1
answer902
viewsQ: Email No Localhost or Mail Server()
Hello, I have the system PHP below to register after the user’s Ubmit, the registration usually occurs, however I would like to be sent an email to the registered email, but the way I did is not…
-
0
votes2
answers595
viewsQ: List BD data using echo (PDO)
Hello, I have this code: <<?php include("conexao.php"); $pdo = conectar(); $buscarusuario = $pdo->prepare("SELECT * FROM tab_clientes WHERE ID=:id");…
-
0
votes2
answers104
viewsQ: Sql file or direct in the database
Today a question came to me, I was creating a table in the database and I found out if I should do it manually, directly in the database or create this table through queries, creating a page .sql.…
-
2
votes2
answers9704
viewsQ: Fill select cities according to status
Hello, I would like that when the user selects a state, the select be filled with the cities of that state so that the user can select his. I found a way to do where you register cities in the…
javascriptasked Arthur Oliveira 147 -
0
votes1
answer48
viewsQ: Use $_SESSION value in function
I have this Javascript function below, where I want to change the display of a link if the value of a session variable is equal to a certain value. However, this way that I did, it’s not working,…
-
0
votes0
answers42
viewsQ: Variable to call where to search in the database!
Does anyone know if it is possible for me to do a database search using a variable like the name of where to search in the database, like how it follows: $consulta = mysqli_query($link, "SELECT *…
phpasked Arthur Oliveira 147 -
1
votes1
answer70
viewsQ: Div tags occupying the same space?
I have the code below that shows the <div> only when a particular option of the former is chosen <select>, but it leaves a giant space on the page due to the fact that it has the tags…
htmlasked Arthur Oliveira 147 -
3
votes1
answer276
viewsQ: Change the visibility of a select
I have this form, where depending on what the person chooses will appear another select for her to select, but this way I did, it is not appearing. Does anyone know if this doesn’t work to select?…
-
1
votes1
answer1039
viewsQ: Pass variable value through a button
There is a way to pass the value of a variable recovered from a database search to a button, which will redirect the user to another page, where a new database search will be done using the variable…
-
0
votes1
answer235
viewsQ: Redirect to another page when giving error in registration!
I have a registration system, which does not allow the user to register with an already registered email, but when I register with an existing email, it does not redirect the user to the…
-
2
votes2
answers2285
viewsQ: How to verify that the email is registered when typing in the form?
I have a registration form, and I’d like you to let me know, as soon as the email was typed, if it’s already in the database. I thought to use a Javascript function, with a PHP code inside that will…