madonnazz Posted March 14, 2008 Share Posted March 14, 2008 Hey guys, I know Im probably to big of a newb for this site, but please dont flame me. I really need someone to help me with my config file, because it seems that I am not entering the right info. Here is my config file, the setting in there are examples that came with the script. My database server is mysql2.freehostia.com Database name: evavel7_freebies I understand what my username and password is, but what is base? Someone please show me real fast what goes where! Thanks Evan <?php // Database configuration $bd_host = "localhost"; $bd_usuario = "brigadep_maxim"; $bd_password = "oroville4250"; $bd_base = "brigadep_surf"; $url = "http://www.ptcbrigade.com/"; $con = mysql_connect($bd_host, $bd_usuario, $bd_password); mysql_select_db($bd_base, $con); ?> Link to comment https://forums.phpfreaks.com/topic/96086-please-help-with-config-file/ Share on other sites More sharing options...
pocobueno1388 Posted March 14, 2008 Share Posted March 14, 2008 It looks like $bd_base is the name of the database. Change your connect line to: <?php $con = mysql_connect($bd_host, $bd_usuario, $bd_password)or die(mysql_error()); mysql_select_db($bd_base, $con)or die(mysql_error()); See if it gives you an error. Also, look in the manual for mysql_connect() and read a little. Link to comment https://forums.phpfreaks.com/topic/96086-please-help-with-config-file/#findComment-491911 Share on other sites More sharing options...
madonnazz Posted March 14, 2008 Author Share Posted March 14, 2008 Thanks pocobueno! Link to comment https://forums.phpfreaks.com/topic/96086-please-help-with-config-file/#findComment-491913 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.