Modifica il tuo codice come segue:

Codice PHP:
mysql_select_db($db_name$db) or die(mysql_error());