please can anyone edit this..

Discussion in 'Programming' started by orientar, Sep 3, 2008.

  1. #1
    hi, i have a PTC site called http://lightbux.info/
    hosting is from freehostia

    i was changing the script of this PTC but got this errors

    "Warning: mysql_connect(): Can't connect to MySQL server on 'https' (111) in /home/www/lightbux.info/config.php on line 10

    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/www/lightbux.info/config.php on line 10

    Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/lightbux.info/menu.php on line 23

    Warning: mysql_query(): A link to the server could not be established in /home/www/lightbux.info/menu.php on line 23

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/lightbux.info/menu.php on line 24

    Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/www/lightbux.info/menu.php on line 25
    Login incorrecto."

    when u open this site u will get it..
    plz help me...

    here is the contents.

    config.php contains this
    <?php

    // Database configuration

    $bd_host = "database";
    $bd_usuario = "admin";
    $bd_password = "iloveyou";
    $bd_base = "database";
    $url = "lightbux.info";
    $con = mysql_connect($bd_host, $bd_usuario, $bd_password); mysql_select_db($bd_base, $con);

    ?>
     
    orientar, Sep 3, 2008 IP
  2. serialCoder

    serialCoder Guest

    Best Answers:
    0
    #2
    lol, dont ever post the database or server details here, if you still need help, let me know
     
    serialCoder, Sep 3, 2008 IP
  3. Joseph S

    Joseph S Well-Known Member

    Messages:
    1,373
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    155
    #3
    $bd_host = "database"; should be $bd_host = "localhost";
     
    Joseph S, Sep 3, 2008 IP
  4. DomainCo.US

    DomainCo.US Well-Known Member

    Messages:
    2,124
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    100
    #4
    that's right, also change your username/password :)
     
    DomainCo.US, Sep 3, 2008 IP