Working Code for learning PHP and MYSQL