Connection mySQL on MAMP (PHP)

     

I'm making a shop based in PHP and I don't know why it's impossible to connect to the database on localserver.8888.


I've checked the names and the orthography and I can't find the error.


I don't know if the error is in connection.php and it can't connect to the db or the error is in the other to add a category on the db.


In the database the data entry type is set for that in VARCHAR and I only put short strings (Like: shirts stickers