Unconscious-heart Posted April 23, 2007 Share Posted April 23, 2007 I'm somewhat new to php and mysql integration. so hitting this wall has been so discouraging. I use the mysql_connect command alone and it works (or i assume it does as i am not calling on any information from the db at this point) but, I use mysql_connect($***, $***, $***); and the script fails. even mysql_connect() with nothing in the brackets fails. I am so stumped. Ive searched all over the place (past 3 days after work) and am still in the same place I was when I started. Please HELP. Quote Link to comment https://forums.phpfreaks.com/topic/48372-solved-this-is-killing-me-but-probably-stupidly-easy/ Share on other sites More sharing options...
MadTechie Posted April 24, 2007 Share Posted April 24, 2007 posting the script may prompt a few ideas, or we can all just guess Quote Link to comment https://forums.phpfreaks.com/topic/48372-solved-this-is-killing-me-but-probably-stupidly-easy/#findComment-236513 Share on other sites More sharing options...
Unconscious-heart Posted April 24, 2007 Author Share Posted April 24, 2007 Here it is. <?php require($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php"); $connection = mysql_connect($db_host, $db_user, $db_password) OR DIE ("Access Denied"); echo $db_password; ?> Quote Link to comment https://forums.phpfreaks.com/topic/48372-solved-this-is-killing-me-but-probably-stupidly-easy/#findComment-236525 Share on other sites More sharing options...
MadTechie Posted April 24, 2007 Share Posted April 24, 2007 try $connection = mysql_connect($db_host, $db_user, $db_password) or die ("error connecting".mysql_error() ); whats the returned error ? Quote Link to comment https://forums.phpfreaks.com/topic/48372-solved-this-is-killing-me-but-probably-stupidly-easy/#findComment-236535 Share on other sites More sharing options...
Unconscious-heart Posted April 24, 2007 Author Share Posted April 24, 2007 its a blank screen Quote Link to comment https://forums.phpfreaks.com/topic/48372-solved-this-is-killing-me-but-probably-stupidly-easy/#findComment-236586 Share on other sites More sharing options...
Unconscious-heart Posted April 24, 2007 Author Share Posted April 24, 2007 but this works <?php require($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php"); echo $db_password; ?> Quote Link to comment https://forums.phpfreaks.com/topic/48372-solved-this-is-killing-me-but-probably-stupidly-easy/#findComment-236589 Share on other sites More sharing options...
Unconscious-heart Posted April 24, 2007 Author Share Posted April 24, 2007 well this actually goes through too <?php require($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php"); $connection = mysql_connect OR DIE ("Access Denied"); echo $db_password; ?> Quote Link to comment https://forums.phpfreaks.com/topic/48372-solved-this-is-killing-me-but-probably-stupidly-easy/#findComment-236594 Share on other sites More sharing options...
Unconscious-heart Posted April 24, 2007 Author Share Posted April 24, 2007 my entire server was failing. i removed it and reinstalled it and BAM! it all works again. thanx for the help though Quote Link to comment https://forums.phpfreaks.com/topic/48372-solved-this-is-killing-me-but-probably-stupidly-easy/#findComment-236657 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.