[ad_1]
$db is usually for database connection. It provides connection link to database, identifies the connection and provides database object. When you use mysql_* functions, you can define last parameter as connection variable. You use it to indentify connection, so multiple mysql connections don’t mix up.
[ad_2]
solved What can I do with the $db variable in mysql_select_db(“database”, $db); [closed]