Ok so I did a search to see if there other posts that explain this completely...
Well i'm here now :)
SCENARIO:
- I want to connect to your mysql database via html.
- I DO NOT want to set the parameters explicitly everytime I wish to perform a query
- I have multiple users and (ofcourse) you want their login details available throughout the application