$type = $error['type']; $message = $error['message']; if ($type = 64 && !empty($message)) { echo "\r\n <strong>\r\n <font color=\"red\">\r\n Fatal error captured:\r\n </font>\r\n </strong>\r\n "; echo "<pre>"; print_r($error); echo "</pre>"; } } require_once 'migrationFunctions.php'; if (!isset($_POST['action'])) { showMenu(); } else { if (preg_match("/Export all databases/", $_POST['action'])) { $myMigration = new migration(); $myMigration->exportAllDBs(); } else { if (preg_match("/Import Mangesh/", $_POST['action'])) { importDB(); } } } function showMenu() { ?> <!DOCTYPE html> <html lang="en"> <head> <title>MySQL Export by Mangesh Sangapu</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1">