query( 'SHOW TABLES FROM ' . PMA_Util::backquote($foreign_db), null, PMA_DatabaseInterface::QUERY_STORE ); while ($row = $GLOBALS['dbi']->fetchRow($tables_rs)) { $tables[] = $row[0]; } } // column dropdown $columns = array(); if ($foreign_db && $foreign_table) { if (isset($existrel[$myfield])) { $foreign_column = $existrel[$myfield]['foreign_field']; } $table_obj = new PMA_Table($foreign_table, $foreign_db); $columns = $table_obj->getUniqueColumns(false, false); } ?>