The interactions in this eCourse require Javascript to be enabled.
Displaying Departments
previous|next
hr_ui.inc contains a function called ui_print_department() to display a set of department records in an HTML table The ui_print_department() function accepts an array of rows, the result set of a query on the DEPARTMENTS table, and generates the HTML table of department records. The construct_departments() function, in the hr.php file, supplies the query results to ui_print_department().