Results 1 to 10 of 10

Thread: config issue

  1. #1
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default config issue

    my web site is http://www.moneybux.biz. Does anyone know anything about config.php files? My pages don't work because of it

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Find your config.php file and edit the variables in there to match your server's database info.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    is the config.php supposed to be in the script folder, public_html or admin folder? I seem to have all the information correct according to the cpanel

  4. #4
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    In the public_html folder.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. #5
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ok, this is what the config.php says:

    <?php

    $bd_host = "localhost";
    $bd_username = "moneybux_admin";
    $bd_password = "******
    $bd_base = "moneybux_bux";

    $con = mysql_connect($bd_host, $bd_username, $bd_password); mysql_select_db($bd_base, $con);

    ?>
    is it correct?

  6. #6
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    That all depends on your database connection info; but the syntax is correct.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  7. #7
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    what connection info are you talking about?

  8. #8
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Forgot the quote:
    Code:
    <?php
    
    $bd_host = "localhost";
    $bd_username = "moneybux_admin";
    $bd_password = "******";
    $bd_base = "moneybux_bux";
    
    $con = mysql_connect($bd_host, $bd_username, $bd_password); mysql_select_db($bd_base, $con);
    
    ?>
    ...and try and see if your username and password is correct. Also see if it's actually "localhost"
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  9. #9
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well, i thought that localhost was the server that the site is being hosted on anyway. but, if you go to http://www.moneybux.biz you will see theh error messages. If someone can tell me anything about those error messages and what should be changed in the config.php I would greatly appreciate it. I know the site needs a facelift. But, that will come when the site is running properly.

  10. #10
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well, i confronted my host, and she told me that the script is connecting, but, there is an issue with the script. anyone know anything about ptc scripts?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •