Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2010
    Posts
    140
    Thanks
    7
    Thanked 0 Times in 0 Posts

    table 'foo.foofoo' doesn't exist

    i am trying to include a config file for another script but it keeps trying to use the previous config file for the script. how can i require both of them on the same page.

    PHP Code:
    require ("config.php");
    require (
    "config2.php"); 
    does not work. it produces this "table 'foo.foofoo' doesn't exist"

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    We need to see what is in those config files. Remove any sensitive data before showing us though.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    May 2010
    Posts
    140
    Thanks
    7
    Thanked 0 Times in 0 Posts
    config.php

    PHP Code:
    //set up the names of the database and table
    $db_name ="_";

    //connect to the server and select the database
    $server "_";
    $dbusername "_";
    $dbpassword "_"
    config2.php

    PHP Code:
    $username "_";
     
    $password "_";
     
    $hostname "_";
            
     
    $dbname ""
    ofcourse each var is different

  • #4
    Regular Coder
    Join Date
    May 2010
    Posts
    140
    Thanks
    7
    Thanked 0 Times in 0 Posts
    i got it fiqured out,

    i had to close the connection to the first table, open a new connection to the second table and close it, then had to reopen the first connection to continue the rest of the script.


  •  

    Posting Permissions

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