Location: PHPKode > projects > Network Asset Management Archive > nama/ip2.php
<?php
$now = date("m/j/y h:i:s",time());
include "connect.php";

$now = date("j/m/y h:i:s",time());
$stmt = "Select * FROM subnets;";
echo "<BR>";
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
		   $ip = ip2long($row->SUBNET);		
                   $stmt2 = "update subnets set subnet_long = '$ip' where subnet = '$row->SUBNET'; ";
                   $sth2 = ibase_query ($dbh,$stmt2);
                   echo $row->subnet . '-->' . $ip . '<br>';

}
?>

Return current item: Network Asset Management Archive