Possible Duplicate:
mysql passwords Connecting to MySQL with PHP
Okay so at the moment every time I need to connect to my mysql database, I have to hardcode all the parameters such as the server, user and pass which means if I ever change database details I’ll have to go through dozens of scripts to change this info
I was just wondering if anyone could help me out by explaining how I can make a much more dynamic system to connect to my database
Thanks
Yes, make connecting params like constants or defines, and store in confing as Tomdarkness said.