";
$res = mysql_query($sql);
if ($res){
$id_graph = mysql_insert_id();
if ($id_graph){
for ($a=0; $a < $module_number; $a++){
$id_agentemodulo = get_parameter_post ("module_".$a);
$id_agentemodulo_w = get_parameter_post ("module_weight_".$a);
$sql = "INSERT INTO tgraph_source (id_graph, id_agent_module, weight) VALUES
($id_graph, $id_agentemodulo, $id_agentemodulo_w)";
//echo "DEBUG $sql
";
mysql_query($sql);
}
echo "
"; echo ""; echo " |
"; echo ""; echo " |
"; echo ""; echo " |