Good morning, I have the following code snippet:
$sql = "SELECT * FROM users WHERE user_name = '" . $user_name . "' OR user_email = '" . $user_email . "';";
$query_check_user_name = $this->db_connection->query($sql);
db_connection would be: $this->db_connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
My question is, does the variable $query_check_user_name
get the variable db_connection for the current instance that receives query ($ sql)?
How would that go without the "- >"? And with the "- >" How does the process work? (who gets who)