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); ?> Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
madonnazz Posted March 14, 2008 Author Share Posted March 14, 2008 Thanks pocobueno! 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.