Since you are specifying the databases in your query, you don't REALLY need to say $my_db = @mysql_select_db($db) or die("Unable to select database");
You could say what results you are getting: Post any error codes:
I'm assuming you are including the query in a wrapper:
$result=mysql_query("SELECT tblnames.eID, tblnames.LastName, tblnames.FirstName, tblnames.autono
FROM pan.tblnames UNION
SELECT tbl_emp.eID, tbl_emp.LastName, tbl_emp.FirstName
FROM signature.tbl_emp; ");
Right??
if(!$result){echo mysql_error();}
You will need to be a user with access to both databases. The admin function for a database lets you create users, establish their firewall access (which servers can talk to the local database), and the privileges of the user on the database. You can do all these functions with phpMyAdmin if you are using a MySQL database.
If you don't know what this means, find somebody around you who does, or read the user manual carefully.