Hi
At first let me say thanks for your great codes.
I was looking around and saw this
$sql = "SELECT * FROM users WHERE user_name = '" . $user_name . "' OR user_email = '" . $user_email . "';";
$query_check_user_name = $this->db_connection->query($sql);
if ($query_check_user_name->num_rows == 1) {
$this->errors[] = "Sorry, that username / email address is already taken.";
line (91 to 95) of classes\Registration.php
What if the user and also the email where exist ? i suggest to use
if ($query_check_user_name->num_rows > 0) {
Let me know if its a good idea
Hi
At first let me say thanks for your great codes.
I was looking around and saw this
line (91 to 95) of classes\Registration.php
What if the user and also the email where exist ? i suggest to use
if ($query_check_user_name->num_rows > 0) {Let me know if its a good idea