DB = new DB($conf->WFdbhost,$conf->WFdbname,$conf->WFdbuser,$conf->WFdbpass,null,$conf->WFdbport); $erp = new erpAPI($app); $tables = $app->DB->SelectArr("SHOW TABLES"); foreach($tables as $key=>$rows) { $tabelle = $rows['Tables_in_wawision']; $tmp = $app->DB->SelectArr("SHOW INDEX FROM `".$tabelle."`"); for($i=0;$i$row) { $func = function($value) { return "'".$value."'"; }; $row = array_map($func, $row); $tmp = rtrim(implode(",",$row),","); echo '$vorlage[\''.$key.'\'] = array('.$tmp.");\r\n"; } ?>