malikah Posted November 18, 2007 Share Posted November 18, 2007 Hi, I'm trying to use the $link to include a file from the parent directory but with no success: $link = include('/home/folder/loginInfo.php'); and the contents of loginInfo.php are: @mysqli_connect("localhost", "username", "password", "database"); How should I re-arrange this to work? Cheers. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted November 18, 2007 Share Posted November 18, 2007 Using $link inside loginInfo.php: include('/home/folder/loginInfo.php'); $link = @mysqli_connect("localhost", "username", "password", "database"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.