Jump to content

Please Help with config file!!


madonnazz

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.