__init__($conn, $server["table"]); // Elicit the total number of data records (samples) for classes (labels) in the given database table. $count = $sample->count_samples(); // Create a CSV file for each data record (sample) in the given database table. if(isset($_POST["data"]) && $_POST["data"] != ""){ $sample->create_sample_files($_POST["data"]); } // Download all generated CSV sample files in the ZIP file format. if(isset($_GET["download"])){ $sample->download_samples("data.zip"); } ?>