Location: PHPKode > projects > Network Asset Management Archive > nama/subnet.php
<?php
include "connect.php";
$now = date("m/j/Y h:i:s",time());
$stmt = "Select * FROM arp_table where (subnet='0.0.0.0') and (ip_address<>'0.0.0.0');";
echo "<BR>";
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
		   $ip = explode(".", $row->IP_ADDRESS);
		   $subnet = $ip[0] . "." . $ip[1] . "." . $ip[2] . ".0";	
                   $stmt2 = "update arp_table set subnet = '$subnet' where serial = '$row->SERIAL'; ";
                   $sth2 = ibase_query ($dbh,$stmt2);
}
?>

Return current item: Network Asset Management Archive