DB Questions
Posted by: Avatar
Posted on: 2006-11-29 19:08:00
Greetings... i have two question...
Im making my index.php access the login.php and the login.php access the config.php to get serverip and user/password to connect to the database... but i got this error each time i try to login:
Warning: main(config.php) [function.main]: failed to open stream: No such file or directory in /home/.pearlite/vilela/homealog.com/login.php on line 2
Warning: main(config.php) [function.main]: failed to open stream: No such file or directory in /home/.pearlite/vilela/homealog.com/login.php on line 2
Fatal error: main() [function.require]: Failed opening required 'config.php' (include_path='.:/usr/local/lib/php') in /home/.pearlite/vilela/homealog.com/login.php on line 2
my config.php as:
<?
$dbhost= '127.0.0.1';
$dbuser= 'douthinkimcrazyenoughtogiveyouthis?';
$dbpass= 'douthinkimcrazyenoughtogiveyouthis?';
$lochost= '127.0.0.1';
$database = 'douthinkimcrazyenoughtogiveyouthis?';
$msconnect=mssql_connect("$dbhost","$dbuser","$dbpass");
if ($msconnect <= 0){die ("<img src=../images/warning.gif> We are currently under development!
try again later.");exit();}
$msdb=mssql_select_db("$database",$msconnect);
?>
help meeeeeee :p
oh.. my other question was... can i connect to my DB via Navicat? if yes how?
Thanks for all ur support
Edited by Avatar on 11/29/06 07:09 PM (server time).