add allocation to table ** 08/18/2004 kdeugau@vianet */ $dbh = pg_connect("dbname=ipdb user=ipdb password=ipdbpwd"); $qu = pg_exec($dbh, "update allocations set custid='$custid',". "type='$alloctype',city='$city',description='$desc',notes='$notes'". " where cidr='$cidr'"); if (!$qu) { print "UPDATE failed. Check data and db."; } else { header("Location: http://".$HTTP_SERVER_VARS['HTTP_HOST']. "/ip/cgi-bin/edit-alloc.php"); } ?>