My database name is student, my problem is every time I include the database name in php file, using include('student.php'); the student.php file connect the mysql query statement.This is normal, but I want to hide the database name any where or other person doesn't see the database and the database settings.
I'm not sure if this is the correct answer, but how we usually do this in Rails is by setting the database settings as environment variables on the server (and locally) and have our app use these environment variables to configure that database connection. You could do the same thing in your PHP app to hide the db name (and password) from people editing the code and from source control. It also helps for deploying to multiple servers.
The best solution you can do is set up your database with a mirror with a user which only has permission to do normal stuff, but not access or drop databases.
That way it doesn't matter what your students do or see the database as.