I have created a script and to connect to the datebase I have this code
// replace 'xxxxxxxx' with your database name, username, and password for music.
$dbhost = 'Localhost';
$dbname = 'xxxxxxxxx';
$dbuser = 'xxxxxxxxx';
$dbpasswd = 'xxxxxxxxx';
// adjust the URL to yours
$url = 'http://mysitedomain.com/';
$id = (isset($_GET['groups'])) ? strval($_GET['groups']) : 15;
// connect to database
$dbcnx = mysql_connect($dbhost, $dbuser, $dbpasswd) or die("Could not connect to host: " . $dbhost);
$dbselect = mysql_select_db($dbname) or die("Could not connect to database: " . $dbselect);
if ((!$dbcnx) || (!$dbselect))
{
echo "Can't connect to database";
}
I dont want to include this information on the page every time I create script can someone tell me what I can replace it with.
Cheer