Location: PHPKode > projects > Network Asset Management Archive > nama/liaso/postrouters.php
<?php
$now = date("m/j/y h:i:s",time());
include "connect.php";
$ROUTER = $_POST['ROUTER'];
$IP_ADDRESS = $_POST['IP_ADDRESS'];
$DESCRIPTION = $_POST['DESCRIPTION'];
$SNMPSTRING = $_POST['SNMPSTRING'];
$DELETE = $_POST['DELETE'];
$serial = $_POST['serial'];

$now = date("j/m/y h:i:s",time());
$i=0;
$ii=count($serial);
for($i=0;$i<$ii;$i++){
   $stmt = "update ROUTERS set ROUTER = '$ROUTER[$i]', IP_ADDRESS = '$IP_ADDRESS[$i]', DESCRIPTION = '$DESCRIPTION[$i]', SNMPSTRING = '$SNMPSTRING[$i]' where serial = '$serial[$i]';"; 
$sth = ibase_query ($dbh,$stmt);
echo $serial[$i] . '<BR>';
}

ibase_close($dbh);
?>

Return current item: Network Asset Management Archive