0
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 this, the variable $query_check_user_name
receives the db_connection variable for the current instance that receives query($sql)?
How would that look without the "->"? And with the "->" how does the process work? (who receives who)
Sorry I got badly formatted.. But this is exactly what I needed! Thanks Junior, completely clarified my question.
– rasec
@rasec I am glad to have answered. Needing only to come back here.
– juniorb2ss