function details($selected_events, $queue)
{
	global $database_ged;

	// get all needed infos into variables
	$value_parts = explode(":", $selected_events);
	$id = $value_parts[0];
	$ged_type = $value_parts[1];

	$sql = "SELECT * FROM ".$ged_type."_queue_".$queue." WHERE id = $id";
	$result = sqlrequest($database_ged, $sql);
	$event = mysqli_fetch_assoc($result);

	// display event's details
	echo '<table class="table table-hover table-condensed">';
		echo '<tbody>';
			createDetailRow($event, "equipment", "label.host");
			createDetailRow($event, "host_alias", "label.host_alias");
			createDetailRow($event, "ip_address", "label.ip_address");
			createDetailRow($event, "service", "label.service");
			createDetailRow($event, "state", "label.state");
			createDetailRow($event, "description", "label.desc");
			createDetailRow($event, "occ", "label.occurence");
			createDetailRow($event, "o_sec", "label.o_time");
			createDetailRow($event, "l_sec", "label.l_time");
			createDetailRow($event, "a_sec", "label.a_time");
			createDetailRow($event, "hostgroups", "label.hostgroups");
			createDetailRow($event, "servicegroups", "label.servicegroups");
			createDetailRow($event, "src", "label.source");
			createDetailRow($event, "owner", "label.owner");
			createDetailRow($event, "comments", "label.comments");
		echo '</tbody>';
	echo '</table>';
}
The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.