I agree with the above. If you want to make apps/games that allow people to communicate with each other, it is extremely helpful to know a server-side language like PHP, together with MySQL for the database.
On the client side, you can't go wrong with the trio of HTML/CSS/javascript.