[Phpmyadmin-devel] export and views

Michal Čihař michal at cihar.com
Sun Oct 15 19:14:16 CEST 2006


Hi

On Fri, 13 Oct 2006 17:37:16 -0400
Marc Delisle <Marc.Delisle at cegepsherbrooke.qc.ca> wrote:

> for db export, is there a possible logic path where the $table_select 
> array would not exist? (It contains the tables chosen by user).

Maybe when user unselects all tables? Or directly loads export.php?

> Another point, in this code:
> 
> // Check if we have something to export
> if ($export_type == 'database') {
>      $tables     = PMA_DBI_get_tables($db);
>      $num_tables = count($tables);
>      if ($num_tables == 0) {
>          $message = $strNoTablesFound;
>          $js_to_run = 'functions.js';
>          require_once('./libraries/header.inc.php');
>          if ($export_type == 'server') {
>              $active_page = 'server_export.php';
>              require('./server_export.php');
>          } elseif ($export_type == 'database') {
>              $active_page = 'db_details_export.php';
>              require('./db_details_export.php');
>          } else {
>              $active_page = 'tbl_properties_export.php';
>              require('./tbl_properties_export.php');
>          }
>          exit();
>      }
> }
> 
> the
> if ($export_type == 'server') {
> and the last "else" block can never be reached (if I read correctly).

Yes, I read it same :-)

-- 
    Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20061015/b827f65c/attachment.sig>


More information about the Developers mailing list