Migrating to new host, tables from another databases

I got from somebody (I was looking for a small job during college) the files of an website to move it on a new host.

There are 9 databases: name_a, name_b, name_c, name_d, name_e, name_f, name_g, name_h, name_i, name_j;

Inside PHP scripts connection it's made just to database name_a. I created the database and the user with the password from PHP script and I imported it successfully.

Inside scripts there are queries like "select * from table" where table it's a table from another database than name_a so the application crashes.

I don't have access to initial host. How the databases or users could be organized in the initial host so the things work there? The scripts are the same. What to ask him furthermore or what can be done?