conferencesAllFormatted($from_time,$until_time); if (!empty($search)) { $conferences = array(); $conferences['records'] = array(); foreach ($search as $item) { extract($item); $conference_record = array( // assign title to the field in the array record 'jitsi_component' => $jitsi_component, 'start' => $start, 'end' => $end, 'conference_id' => $conference_id, 'conference_name' => $conference_name, 'participants' => $participants, 'name_count' => $name_count, 'conference_host' => $conference_host ); // populate the result array array_push($conferences['records'], $conference_record); } } } catch (Exception $e) { $error = $e->getMessage(); } echo "Conferences for the time period $from_time - $until_time"; if (!empty($conferences['records'])) { echo "\t"; echo "\t\t"; // table headers foreach (array_keys($conferences['records'][0]) as $header) { echo "\t\t\t"; } echo "\t\t"; //table rows foreach ($conferences['records'] as $row) { echo "\t\t"; foreach ($row as $column) { echo "\t\t\t"; } echo "\t\t"; } echo "\t
" . htmlspecialchars($header) . "
" . htmlspecialchars($column) . "
"; } else { echo '

No matching conferences found.

'; } ?>