Some small changes/fixes
This commit is contained in:
@@ -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>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user