OK....
This is what I want to do - have a file called guestcon.php and have all the mysql connection information:
<?php
$host = "localhost";
$user = "safe_mysqld";
$pass = "";
$db = "techigloo";
//$DBConn= mysql_pconnect($host, $user, $pass)
//or trigger_error(mysql_error(),E_USER_ERROR);
?>
so that whenever I refer to $db whether it be on a totally separate page - it automatically knows to pull the value of $db that is contained in the guestcon.php.....
I am still a n00b, so I am thinking a function could be the right solution.....I am still trying to wrap my head around functions!! I am currently trying to make it work by using the require_once() function - should that be doing what I want it to do??
I would appreciate it if someone would explain to me what the right solution is for me.
a little confused.....
Adrian