I am trying to maintain my MySQL connection between PHP pages within my website without having to rewrite db connection code for each page? How can I do this?
Use the mysql_pconnect() function.
Note : only works if you use PHP as a module.