My guess is that you do not have the permissions set up for your database. Lets say you have a database called database_1 and you want the user "phpuser" to have viewing and adding privelages. First you must add the user "phpuser" and set a password. Lets say the password is password. Now you grant access to databse_1 for phpuser with the following in MySQL:
GRANT SELECT,INSERT on database_1.*
TO phpuser@localhost IDENTIFIED BY "password";
Now phpuser has viewing and adding privelages to the database.