I am relearning PHP from the ground up and I would really like to COMPLETELY understand the language. I know how to use the mysql_connect function. I would like to know the why's and how's of it more thoroughly though. My question is as follows:
$connection = mysql_connect("localhost", "root", "");
if (!$connection) {
die("Connection failed: " . mysql_error());
}
Line 1 of this function, if I am not mistaken, returns a value of TRUE or FALSE. TRUE if a connection was successful or FALSE if it was not. Is the return value of this function stored in the variable $connection (If so, and the connection is successful, is the value TRUE assigned to the variable) or is the database login credentials stored in the variable $connection? Hows does that work. Thanks!