Massive sql error's with YourBoxScript 3.2 .. please help .

Discussion in 'MySQL' started by xyde, Jul 8, 2008.

  1. #1
    Hi , i just download here from the forum "YourOwnBox Script v3.2"
    Which is bux script.

    I did every thing ok , i modiefed the config.php with the same settings,
    What i did i created new mysql , then go to th phpmyadmin and then i did import the sql i got from the script to the database thet i created , i write the same database name + pass on the config.php , and i get massive error's u can see it here :

    <?php
    
    // Database configuration
    
    $bd_host = "localhost";
    $bd_usuario = "xyde2k2_xyde";
    $bd_password = "123456";
    $bd_base = "xyde2k2_xyde";
    $url = "http://localhost/";
    $con = mysql_connect($bd_host, $bd_usuario, $bd_password); mysql_select_db($bd_base, $con);
    
    ?>
    
    Code (markup):
    This my config.php , u can see its the same settings ...
    I created the same database name + username and the same pass..
    and i did edit every config.php file on my script i have 3 config.php files..
    seems every things ok ..

    the website to see the error's :
    http://steam4you.free240.com/


    what wrong here and why its not working ?
     
    xyde, Jul 8, 2008 IP
  2. zerofill

    zerofill Member

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #2
    Double check your username, host and password...thats really common to see when you aren't connected to the database.
     
    zerofill, Jul 8, 2008 IP
  3. zerofill

    zerofill Member

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #3
    have any whitespace in it?
     
    zerofill, Jul 8, 2008 IP
  4. zerofill

    zerofill Member

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #4
    Actually test like this to see if you are getting a connection first....

    <?php
    mysql_connect("server", "user", "pass") or die(mysql_error());
    echo "Got a connection";
    ?>

    replacing server, user, pass of course heh
     
    zerofill, Jul 8, 2008 IP
  5. flawebworks

    flawebworks Tech Services

    Messages:
    991
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    78
    #5
    flawebworks, Jul 8, 2008 IP
  6. zerofill

    zerofill Member

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #6
    If someone setup a script to connect to the config file for the database by url that would have to be the dumbest thing I ever saw. I mean needing a reference to an actual url to find the connection script.

    I assume that the $url is just for other pages to use...The connection script should still work he is getting to the page.
     
    zerofill, Jul 8, 2008 IP
  7. xyde

    xyde Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i fixed it thx all .
     
    xyde, Jul 9, 2008 IP
  8. zerofill

    zerofill Member

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #8
    What was the problem if you don't mind me asking?
     
    zerofill, Jul 9, 2008 IP
  9. syndromeX

    syndromeX Banned

    Messages:
    321
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I think you dind't fix anything, your site look the same way :p
     
    syndromeX, Jul 9, 2008 IP
  10. calcalmx123

    calcalmx123 Well-Known Member

    Messages:
    1,498
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    195
    #10
    <?php

    // Database configuration

    $bd_host = "localhost";
    $bd_usuario = "xyde2k2_xyde";
    $bd_password = "123456";
    $bd_base = "xyde2k2_xyde";
    $url = "http://localhost/";
    $con = mysql_connect($bd_host, $bd_usuario, $bd_password); mysql_select_db($bd_base, $con);

    ?>

    get rid of the red bit
     
    calcalmx123, Jul 11, 2008 IP