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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.