Web Player and database

Hello, im making a multi-platform game (phone,pc and web), I use mysql data base and php brige to connect and store the players accounts and score. The pc and phone versión works great the problem is when I build it for web player and try to connect to data base never connect its just standing connecting and never change this state.