add route to table ** 07/13/2004 kdeugau@vianet */ $dbh = pg_connect("dbname=ipdb user=ipdb"); $qu = pg_exec($dbh, "insert into routed values ('$cidr',$maskbits,'$city')"); if (!$qu) { include '../header.inc'; print "INSERT failed. Check data and db."; include '../footer.inc'; } else { header("Location: http://".$HTTP_SERVER_VARS['HTTP_HOST']. "/ip/cgi-bin/edit-route.php"); } ?>