Posts by Lukaz11 • 313 points
9 posts
-
1
votes1
answer113
viewsQ: Using two statment at the same time without giving "Fatal error: bind_param"
On my records page I want to check the names of users and emails separately but at the same time. I could leave the message like this: Username or email already exists to facilitate but I have never…
-
1
votes1
answer1293
viewsQ: How to verify an encrypted password during Login?
When I try to log in: if I use the wrong username and password, only the contents of the header and of footer. if I use the correct username and password, the login does not recognize the user:…
-
3
votes1
answer616
viewsQ: Password security: Should I use Mysqli -> real_escape_string or bind_param?
Mysqli => real_escape_string I want the password storage to be as safe as possible, at the moment I am using only mysqli => real_escape_string: $password = $_POST['password']; $password_safe =…
-
6
votes1
answer1009
viewsQ: What is the difference between `filter_var`and `filter_input`?
What’s the difference between filter_var and filter_input? I can’t find it anywhere, at least not in a way I understand. And how can I replace mysql_real_escape_string by one of them? $password =…
-
3
votes2
answers2877
views -
2
votes1
answer2703
viewsQ: What are the recommended values for Mysql database (id, user, password and email)?
I created a table user with the following values: Tipo = `MyISAM` ID = `int, PRIMARY, AI`; Usuário = `varchar, 16`; Senha = `varchar, 16`; Email = `varchar, 100`; Are these values recommended?…
-
1
votes1
answer500
viewsQ: How do I redirect the login page to the control panel when I am logged in?
With this code I redirect from the control panel to the login page visitors who are not logged in. <?php session_start(); if (!isset($_SESSION['username'])){ header("location: login.php"); }…
-
0
votes1
answer1327
views -
1
votes2
answers1507
viewsQ: How to display multiple error messages simultaneously in form?
I’m trying to get my log page to show all forgotten fields messages together as in this example: But it only shows in parts: 1 - "Username already exists" and "Email already exists" or 2 - "Please…