Non e' che ti sei scordato mysql_select_db() ?