Im trying to move my database connection script to an external (and therefore more secure) file. However, it isnt working.
Here my PHP page (with include link)
<?php
include 'block/datalogin.php';
..etc
And heres block/datalogin.php
$dbhost = "localhost";
$dbuser = "************";
$dbpass = "***********";
$dbname = "************";
@mysql_connect($dbhost, $dbuser, $dbpass) or die("unable to
connect to database."
);
mysql_select_db($dbname) or die ("Unable to select");
Im sure the paths and login info are correct.
Any suggestions?