Some small changes/fixes

This commit is contained in:
2023-02-13 09:10:12 +01:00
parent 2efd4ad0ab
commit 7322231d3e
8 changed files with 14 additions and 8 deletions

View File

@@ -11,7 +11,7 @@
mysql_query("UPDATE subnet SET vlan_id='$vlan_id' WHERE subnet_id='$subnet_id'") or die(mysql_error());
header("location: vlan.php");
header("location: vlanview.php?vlan_id=" . $vlan_id);
}
$vlan_id = $_GET['vlan_id'];
@@ -28,7 +28,7 @@
<select name="subnet_id">
<?php
$result = mysql_query("SELECT subnet_id, subnet_address FROM subnet ORDER BY subnet_address");
$result = mysql_query("SELECT subnet_id, subnet_address FROM subnet ORDER BY INET_ATON(subnet_address)");
while ($row = mysql_fetch_object($result)) {
echo '<option value="' . $row->subnet_id . '">' . $row->subnet_address . '</option>';
}