$sort, 'order' => $order))); $sql = mysqli_query( $mysqli, "SELECT SQL_CALC_FOUND_ROWS * FROM networks LEFT JOIN locations ON location_id = network_location_id WHERE network_client_id = $client_id AND network_archived_at IS NULL AND (network_name LIKE '%$q%' OR network_description LIKE '%$q%' OR network_vlan LIKE '%$q%' OR network LIKE '%$q%' OR network_gateway LIKE '%$q%' OR network_subnet LIKE '%$q%' OR network_primary_dns LIKE '%$q%' OR network_secondary_dns LIKE '%$q%' OR network_dhcp_range LIKE '%$q%' OR location_name LIKE '%$q%') ORDER BY $sort $order LIMIT $record_from, $record_to" ); $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); ?>

Networks


"> $network_secondary_dns"; } else { $network_dns_display = "-"; } $network_dhcp_range = nullable_htmlentities($row['network_dhcp_range']); if (empty($network_dhcp_range)) { $network_dhcp_range_display = "-"; } else { $network_dhcp_range_display = $network_dhcp_range; } $network_location_id = intval($row['network_location_id']); $location_name = nullable_htmlentities($row['location_name']); if (empty($location_name)) { $location_name_display = "-"; } else { $location_name_display = $location_name; } ?>
Name vLAN IP / Network Gateway DNS DHCP Range Location Action
)" data-target="#editNetworkModal">