For the first time ever I am getting third party programmers to help update my code etc.
They need to be able to access tables in the database but I do not want to give the access to the whole database as there is allot of information in it that they do not need.
I really don’t want to have to write code for every table for them to check.
So my question is… does anyone have some code I can have that will select everything from a table and then automatically display it, pretty much exactly like phpMyAdmin does?
First, if you use PHPMyAdmin, they will have the same access to the database as if they have direct access to it. PHPMyAdmin only provides a graphic interface, it doesn’t limit the access to any area of that database.
Restricting the access to certain tables or databases is a matter of permissions and you need to setup those permissions in MySQL or any other database manager that you use. You will create an account with the appropriate permissions to access the tables you want and then you can install PHPMyAdmin or any other graphic interface if you want. They will see only those tables or databases they have access to.