I intend that all pages on my site will connect to mySQL through PHP to fetch content and render it into HTML. I know how to connect to a db, query results, render it into HTML, and display the page properly.
I'm using a standard PHP include to get db, userid, passwd values for a db_connect. This is on every page in my site.
The userid/passwd are thus the same for everyone who is on my site, and a db_connect instance with the same userid/passwd is done for every page view.
Does this create overhead or performance considerations or potential conflicts in accessing mySQL that could otherwise be prevented? Or is this the "right way" to have all pages on your site build content dynamically from a mySQL database?