correct
create a php file that contains all of your db info - connection etc
call it ssi.php
then point to that.
Using that 'require' function or 'include' on any page allows connectivity/interactivity with your db.
http://w3schools.com/php/func_mysql_connect.asp
There is a good amount of info on that link....