__init__($conn); // Obtain all data records from the entries database table and print them as table rows. $date=[]; $mmWave=[]; $label=[]; list($date, $mmWave, $label) = $wave->get_data_records(); $records = "DatemmWaveLabel"; for($i=0; $i '.$date[$i].' '.$mmWave[$i].' '.$label[$i].' '; } // Fetch all model detection results with the assigned detection image name from the detections database table and display them as table rows. $date_R=[]; $mmWave_R=[]; $class=[]; $img=[]; list($date_R, $mmWave_R, $class, $img) = $wave->get_model_results(); $results = "DatemmWaveModel PredictionIMG"; for($i=0; $i '.$date_R[$i].' '.$mmWave_R[$i].' '.$class[$i].' '; } // Create a JSON object from the generated table rows consisting of the obtained data records and model detection results. $result = array("records" => $records, "results" => $results); $res = json_encode($result); // Return the recently generated JSON object. echo($res); ?>