Some small changes/fixes
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
function display_subnet ($location_id) {
|
||||
$subnet = '';
|
||||
|
||||
$result = mysql_query("SELECT s.subnet_id, s.subnet_address, s.subnet_mask FROM subnet s INNER JOIN subnetlocation sl ON s.subnet_id=sl.subnet_id WHERE sl.location_id='$location_id' ORDER BY subnet_address");
|
||||
$result = mysql_query("SELECT s.subnet_id, s.subnet_address, s.subnet_mask FROM subnet s INNER JOIN subnetlocation sl ON s.subnet_id=sl.subnet_id WHERE sl.location_id='$location_id' ORDER BY INET_ATON(subnet_address)");
|
||||
while ($row = mysql_fetch_object($result)) {
|
||||
$subnet .= '<a href="subnetview.php?subnet_id='. $row->subnet_id . '">' . $row->subnet_address . '/' . $row->subnet_mask . '</a><br>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user