Martijn - 2004-07-07

I saw a lot of people are experiencing the edit/delete Table not found error. You can solve it by
changing some lines in the main_classes/User.php file.
Change this:

        $sql = "SELECT * FROM " . $currenttable->dbtablename . "
WHERE " . $currenttable->findid() . " = '" . $primarykey . "'";
       
        $result = $db->query($sql);

into this:

        $sql = "SELECT * FROM " . $currenttable->dbtablename . "
WHERE " . $currenttable->findid() . " = '" . $primarykey . "'";
       
        $regdb = $currenttable->database->constring();
        $result = $regdb->query($sql);

the problem was that it was always using the main database to find the table you were working on.